home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PROGEDIT / 1621.ZIP / WEDUSER.DOC < prev    next >
Text File  |  1989-04-18  |  174KB  |  4,377 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                                  WED (r)  Text Editor
  24.  
  25.  
  26.                                      Users Manual
  27.  
  28.  
  29.  
  30.  
  31.  
  32.                                      Version 4.10
  33.  
  34.                                 Copyright (C) 1987-1989
  35.  
  36.                                 Washington Computer Co.
  37.  
  38.  
  39.  
  40.  
  41.           WED 4.10                  User's Guide                  Contents
  42.  
  43.  
  44.                                  Table of Contents
  45.  
  46.  
  47.  
  48.           i       RESISTRATION . . . . . . . . . . . . . . . . . . . iv
  49.  
  50.           ii      NOTICES  . . . . . . . . . . . . . . . . . . . . .vii
  51.  
  52.           1       INTRODUCTION . . . . . . . . . . . . . . . . . . .  1
  53.  
  54.           1.1     Program Description  . . . . . . . . . . . . . . .  1
  55.           1.2     Machine Requirements . . . . . . . . . . . . . . .  2
  56.           1.3     Installing WED . . . . . . . . . . . . . . . . . .  2
  57.  
  58.           2       GETTING STARTED  . . . . . . . . . . . . . . . . .  5
  59.  
  60.           2.1     Starting WED . . . . . . . . . . . . . . . . . . .  5
  61.           2.2     The Main Menu  . . . . . . . . . . . . . . . . . .  5
  62.           2.3     The Command Line . . . . . . . . . . . . . . . . .  6
  63.           2.4     The Status Line  . . . . . . . . . . . . . . . . .  7
  64.           2.5     The Text Window  . . . . . . . . . . . . . . . . .  7
  65.           2.6     The Help Command . . . . . . . . . . . . . . . . .  8
  66.           2.7     Using WED's Pop-up menus . . . . . . . . . . . . .  9
  67.           2.8     The Quit Command . . . . . . . . . . . . . . . . .  9
  68.           2.8.1       Keep . . . . . . . . . . . . . . . . . . . . . 10
  69.           2.8.2       Save . . . . . . . . . . . . . . . . . . . . . 10
  70.           2.8.3       New  . . . . . . . . . . . . . . . . . . . . . 10
  71.           2.8.4       Abort  . . . . . . . . . . . . . . . . . . . . 11
  72.  
  73.           3       MOVING AROUND THE FILE . . . . . . . . . . . . . . 12
  74.  
  75.           3.1     Moving Around the Screen . . . . . . . . . . . . . 12
  76.           3.1.1       The Arrow Keys . . . . . . . . . . . . . . . . 12
  77.           3.1.2       The Home and End Keys  . . . . . . . . . . . . 12
  78.           3.1.3       The Right Word and Left Word Commands  . . . . 13
  79.           3.1.4       The Next Space Command . . . . . . . . . . . . 13
  80.           3.2     The Scroll Commands  . . . . . . . . . . . . . . . 13
  81.           3.3     Up Screen and Down Screen  . . . . . . . . . . . . 13
  82.           3.4     Repeat Factors . . . . . . . . . . . . . . . . . . 14
  83.           3.5     The Goto Command . . . . . . . . . . . . . . . . . 14
  84.           3.5.1       Goto Top . . . . . . . . . . . . . . . . . . . 15
  85.           3.5.2       Goto Bottom  . . . . . . . . . . . . . . . . . 15
  86.           3.5.3       Goto Line #  . . . . . . . . . . . . . . . . . 15
  87.           3.5.4       Goto Pointer . . . . . . . . . . . . . . . . . 16
  88.  
  89.           4       CHANGING THE FILE  . . . . . . . . . . . . . . . . 17
  90.  
  91.           4.1     Entering Text  . . . . . . . . . . . . . . . . . . 17
  92.           4.2     Insert - Inserting Text  . . . . . . . . . . . . . 17
  93.           4.3     Erase - Erasing Text . . . . . . . . . . . . . . . 19
  94.           4.4     Locating and Replacing Text  . . . . . . . . . . . 20
  95.           4.4.1       Locate and Replace Options . . . . . . . . . . 23
  96.           4.4.1.1         Occurances . . . . . . . . . . . . . . . . 23
  97.  
  98.  
  99.  
  100.           Copyright (C) 1987-1989 Washington Computer Co.                i
  101.  
  102.  
  103.           WED 4.10                  User's Guide                  Contents
  104.  
  105.  
  106.  
  107.           4.4.1.2         Back Wards Option  . . . . . . . . . . . . 23
  108.           4.4.1.3         Whole Words Option . . . . . . . . . . . . 24
  109.           4.4.1.4         Ignore Case Option . . . . . . . . . . . . 24
  110.           4.4.1.5         No Query Option  . . . . . . . . . . . . . 24
  111.           4.4.1.6         Global Option  . . . . . . . . . . . . . . 24
  112.  
  113.           5       ADVANCED COMMANDS  . . . . . . . . . . . . . . . . 25
  114.  
  115.           5.1     Setting Pointers . . . . . . . . . . . . . . . . . 25
  116.           5.2     Moving Text  . . . . . . . . . . . . . . . . . . . 26
  117.           5.3     Copying Text . . . . . . . . . . . . . . . . . . . 27
  118.           5.4     Zapping Text . . . . . . . . . . . . . . . . . . . 28
  119.           5.5     Undeleting Text  . . . . . . . . . . . . . . . . . 29
  120.           5.6     Appending Text from Another File . . . . . . . . . 29
  121.           5.7     Writing Text to Another File . . . . . . . . . . . 30
  122.           5.8     Editing Multiple Files (Other) . . . . . . . . . . 31
  123.           5.8.1       Opening Other Files  . . . . . . . . . . . . . 31
  124.           5.8.2       Switching Between Files  . . . . . . . . . . . 32
  125.           5.8.3       Quiting Other Files  . . . . . . . . . . . . . 32
  126.           5.8.4       The Zoom Command . . . . . . . . . . . . . . . 32
  127.           5.8.5       Resizing Edit Windows  . . . . . . . . . . . . 33
  128.           5.9     Copying Text Between Files (Bridge). . . . . . . . 33
  129.           5.10    The DOS Command  . . . . . . . . . . . . . . . . . 34
  130.  
  131.           6       EDITING WITH WORD-WRAP . . . . . . . . . . . . . . 35
  132.  
  133.           6.1     Word-wrap Mode . . . . . . . . . . . . . . . . . . 35
  134.           6.2     Re-flowing a Paragraph with Format . . . . . . . . 35
  135.  
  136.           7       SPECIAL FEATURES FOR PROGRAMMERS . . . . . . . . . 37
  137.  
  138.           7.1     Auto-indent Mode . . . . . . . . . . . . . . . . . 37
  139.           7.2     Re-indenting With the Format Command . . . . . . . 37
  140.           7.3     The Execute Program Command  . . . . . . . . . . . 38
  141.           7.4     The Pop-up ASCII Table . . . . . . . . . . . . . . 40
  142.  
  143.           8       EDITING SPECIAL CHARACTERS . . . . . . . . . . . . 41
  144.  
  145.           8.1     Editing Files With Control Characters  . . . . . . 41
  146.           8.2     Using Text or Graphics Characters  . . . . . . . . 41
  147.  
  148.           9       PRINTING FILES . . . . . . . . . . . . . . . . . . 42
  149.  
  150.           10      THE SETUP COMMAND  . . . . . . . . . . . . . . . . 45
  151.  
  152.           10.1    Cursor Type  . . . . . . . . . . . . . . . . . . . 46
  153.           10.2    End-Of-Line Symbol . . . . . . . . . . . . . . . . 46
  154.           10.3    Locate Key . . . . . . . . . . . . . . . . . . . . 46
  155.           10.4    User Programs  . . . . . . . . . . . . . . . . . . 46
  156.           10.5    Keyboard Macros  . . . . . . . . . . . . . . . . . 47
  157.           10.6    Split Screen . . . . . . . . . . . . . . . . . . . 48
  158.           10.7    Insert Type  . . . . . . . . . . . . . . . . . . . 49
  159.  
  160.  
  161.  
  162.           Copyright (C) 1987-1989 Washington Computer Co.               ii
  163.  
  164.  
  165.           WED 4.10                  User's Guide                  Contents
  166.  
  167.  
  168.  
  169.           10.8    <del> Key  . . . . . . . . . . . . . . . . . . . . 49
  170.           10.9    Disable BAK Files  . . . . . . . . . . . . . . . . 49
  171.           10.10   File Name  . . . . . . . . . . . . . . . . . . . . 49
  172.           10.11   Swap Path  . . . . . . . . . . . . . . . . . . . . 50
  173.           10.12   Monitor Type . . . . . . . . . . . . . . . . . . . 50
  174.           10.13   Colors . . . . . . . . . . . . . . . . . . . . . . 50
  175.           10.14   EGA 43 Line Mode . . . . . . . . . . . . . . . . . 51
  176.           10.15   Snow Removal . . . . . . . . . . . . . . . . . . . 52
  177.           10.16   Auto Indent  . . . . . . . . . . . . . . . . . . . 52
  178.           10.17   Word Wrap  . . . . . . . . . . . . . . . . . . . . 52
  179.           10.18   Right Margin . . . . . . . . . . . . . . . . . . . 52
  180.           10.19   Tab Conversion . . . . . . . . . . . . . . . . . . 52
  181.           10.20   Tab Stops  . . . . . . . . . . . . . . . . . . . . 53
  182.           10.21   Print Header . . . . . . . . . . . . . . . . . . . 53
  183.           10.22   Print Line Numbers . . . . . . . . . . . . . . . . 53
  184.           10.23   Printer Page Height  . . . . . . . . . . . . . . . 53
  185.           10.24   Printer Page Width . . . . . . . . . . . . . . . . 54
  186.           10.25   Printer Top Margin . . . . . . . . . . . . . . . . 54
  187.           10.26   Printer Bottom Margin  . . . . . . . . . . . . . . 54
  188.           10.27   Printer Left Margin  . . . . . . . . . . . . . . . 54
  189.           10.28   Printer Right Margin . . . . . . . . . . . . . . . 54
  190.           10.29   Printer Setup String . . . . . . . . . . . . . . . 54
  191.           10.30   Printer Reset String . . . . . . . . . . . . . . . 55
  192.           10.31   Save Setup Values  . . . . . . . . . . . . . . . . 55
  193.  
  194.           Appendix A  Command Summary  . . . . . . . . . . . . . . . 56
  195.           Appendix B  Initial Macro Settings . . . . . . . . . . . . 58
  196.           Appendix C  Graphics Mode Characters . . . . . . . . . . . 59
  197.           Appendix D  Using WED With Quarterdeck's DESQview  . . . . 60
  198.           Appendix E  New Features in Version 4.00 . . . . . . . . . 61
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.           Copyright (C) 1987-1989 Washington Computer Co.              iii
  225.  
  226.  
  227.           WED 4.00                     Users                  Registration
  228.  
  229.  
  230.  
  231.           REGISTRATION
  232.  
  233.  
  234.  
  235.                   All versions of WED, including version 4.10, are not
  236.           public domain software, nor are they free software.
  237.  
  238.                   WED is copyright (C) 1987-1989 by Washington Computer Co.
  239.  
  240.                   Non-registered users are granted a limited license to
  241.           use WED on a trial basis for the purpose of determining whether
  242.           WED is suitable for their needs.  Use of WED, except for this
  243.           limited purpose, requires registration.  Use of non-registered
  244.           copies of WED by any person, business, corporation,
  245.           governmental agency or other entity institution is strictly
  246.           forbidden.
  247.  
  248.                   Registration permits a user the license to use WED only
  249.           on a single computer; a registered user may use the program on
  250.           a different computer, but may not use the program on more than
  251.           one computer at the same time.
  252.  
  253.                   All users are granted a limited license to copy WED
  254.           only for the trial use of others subject to the above
  255.           limitations, and also the following:
  256.  
  257.                   o  WED must be copied in unmodified form, complete with
  258.                      the file containing this license information.
  259.  
  260.                   o  The full WED documentation must be included with the
  261.                      copy.
  262.  
  263.                   o  No fee, charge or other compensation may be accepted
  264.                      by any licensee.
  265.  
  266.                   o  WED may not be distributed in conjunction with any
  267.                      other product unless written permission is granted
  268.                      by Washington Computer Co.
  269.  
  270.                   Operators of electronic bulletin board systems may post
  271.           WED for downloading by their users only as long as the above
  272.           conditions are met.
  273.  
  274.                   Distributors of public domain or user supported
  275.           software may distribute copies of WED subject to the above
  276.           conditions only after obtaining written permission from
  277.           Washington Computer Co.  Such permission usually is granted;
  278.           please write for details.
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.           Copyright (C) 1987-1989 Washington Computer Co.               iv
  287.  
  288.  
  289.           WED 4.00                     Users                  Registration
  290.  
  291.  
  292.  
  293.           HOW TO ORDER WED
  294.  
  295.                   A WED registration licenses you to use the product on a
  296.           regular basis.  Registration includes mailed notification of
  297.           updates, phone support, and one update.  There are two
  298.           registration options for WED:
  299.  
  300.                   BASIC REGISTRATION:  This option costs $30 and includes
  301.           a diskette containing the latest version of WED along with all
  302.           of its support files including the disk version of the WED Users
  303.           Manual.  This option also includes one free update to a future
  304.           version of WED.
  305.  
  306.                   THE WORKS:  This option includes the registration and
  307.           diskette, plus a printed and bound manual. The manual is over 100
  308.           pages long and includes a new reference section not available on
  309.           disk.  The registration, disk, and manual option costs $45 also
  310.           includes one free update to a future version of WED.
  311.  
  312.  
  313.           BY MAIL
  314.  
  315.                   Please use the enclosed order form when placing an order.
  316.  
  317.  
  318.           BY PHONE
  319.  
  320.                   WED can be ordered through PSL by phone using a major
  321.           credit card.  To order call: 1-800-242-4775 (orders only).  For
  322.           more information or technical support, call 1-703-739-9049.
  323.  
  324.  
  325.           CORPORATE PURCHASES
  326.  
  327.                   All corporate, business, government or other commercial
  328.           users of WED must be registered.  Quantity discounts start at the
  329.           eleventh copy.  For infomation on corporate, site, and source
  330.           code licensing, contact Mason Washington at Washington Computer
  331.           Corporation.
  332.  
  333.                   We accept purchase orders in amounts of $100 or more only.
  334.           All other orders should be prepaid.
  335.  
  336.           Quantity discounts:
  337.  
  338.                  0-10 copies:      no discount
  339.                 11-25 copies:      5% discount
  340.                 26+   copies:     10% discount
  341.  
  342.                   ALL PRICES AND DISCOUNTS ARE SUBJECT TO CHANGE WITHOUT
  343.           NOTICE.  Discounts are not cumulative; they apply to single orders
  344.           of like products only.
  345.  
  346.  
  347.  
  348.           Copyright (C) 1987-1989 Washington Computer Co.                v
  349.  
  350.  
  351.           WED 4.00                     Users                    Order Form
  352.  
  353.  
  354.  
  355.  
  356.           Send to:   Washington Computer Co.
  357.                      P.O. Box 16504
  358.                      Alexandria, VA 22302
  359.  
  360.  
  361.  
  362.           Please send:
  363.  
  364.  
  365.           _____ WED Registration with disk . . . . @ $ 30.00 ea $ ________
  366.                     (includes registration plus the WED editor
  367.                     and manual on disk, and one update)
  368.  
  369.           _____ Complete WED package . . . . . . . @ $ 45.00 ea $ ________
  370.                     (includes registration, WED editor on
  371.                     disk, and printed, bound manual with extra
  372.                     reference section, and one update)
  373.  
  374.  
  375.                                                        Subtotal   ________
  376.  
  377.                  Virginia residents please add 4.5% sales tax     ________
  378.  
  379.                         Shipping and handling: $4.00 per copy     ________
  380.  
  381.                                                           Total $ ________
  382.  
  383.  
  384.  
  385.           Payment by:  ( ) Check  ( ) MC  ( ) VISA  ( ) PO #_____________
  386.  
  387.  
  388.              Name : ______________________________________________________
  389.  
  390.           Company : ______________________________________________________
  391.  
  392.           Address : ______________________________________________________
  393.  
  394.                     ______________________________________________________
  395.  
  396.                     ______________________________________________________
  397.  
  398.           Day Phone : ______________________  Eve : ______________________
  399.  
  400.  
  401.            Card # : ____________________________  Exp. Date : ____________
  402.  
  403.            Signature of cardholder : _____________________________________
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.           Copyright (C) 1987-1989 Washington Computer Co.               vi
  411.  
  412.  
  413.           WED 4.00                                                Warranty
  414.  
  415.  
  416.  
  417.           COPYRIGHT
  418.  
  419.  
  420.                   WED is copyright (c), 1987-1989 by Washington Computer Co.
  421.           All rights reserved.
  422.  
  423.  
  424.           TRADEMARKS
  425.  
  426.  
  427.                   WED is a registered trademark of Washington Computer Co.
  428.  
  429.                   IBM is a registered trademark of International Business
  430.           Machines Corporation.
  431.  
  432.                   MS-DOS is a registered trademark of Microsoft Corporation.
  433.  
  434.                   dBASE III a is a registered trademark of Ashton-Tate.
  435.  
  436.  
  437.           NOTICE
  438.  
  439.  
  440.                   Washington Computer Co. makes no representations or
  441.           warranties of any kind whatsoever with respect to the contents
  442.           hereof and specifically disclaims any implied warranties or
  443.           merchantability or fitness for any particular purpose. 
  444.           Washington Computer Co. shall not be liable for errors contained
  445.           herein or for incidental or consequential damages in connection
  446.           with the furnishing, performance, or use of this product.
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.           Copyright (C) 1987-1989 Washington Computer Co.              vii
  473.  
  474.  
  475.           WED 4.10                  User's Guide              Introduction
  476.  
  477.  
  478.  
  479.           1       INTRODUCTION
  480.  
  481.  
  482.           1.1     PROGRAM DESCRIPTION
  483.  
  484.  
  485.                   WED is a fast and easy to use screen oriented text editor
  486.           designed for programming and light word processing. Being screen
  487.           oriented means WED continually displays a region of the file on
  488.           the screen and allows you to change the file by making changes on
  489.           the screen.  You change the screen by moving the cursor to any
  490.           place in the file and then typing new text or using any of the
  491.           advanced edit functions available.
  492.  
  493.                   WED is easy to learn and work with features like pop-up
  494.           menus, context sensitive help, and a convenient prompt line that
  495.           lists the commands while leaving most of the screen available for
  496.           editing.  WED's Undelete command even makes it easy to undo
  497.           mistakes.
  498.  
  499.                   With the powerful commands available in WED, you can
  500.           search and replace text, move or copy blocks of text within a
  501.           single file or between separate files.  The extensive file
  502.           handling allows multiple files to be edited, split and merged, and
  503.           includes the ability to split the screen and view two files at the
  504.           same time.  The DOS gateway command allows you to switch to the
  505.           DOS prompt without leaving the editor.
  506.  
  507.                   Other advanced features are designed to aid the program-
  508.           mer.  The auto-indent feature and the indent and undent commands
  509.           save you key strokes while entering and editing programs. The
  510.           execute command allows you to compile programs without exiting the
  511.           editor, thus eliminating wasted time spent switching between the
  512.           editor and the compiler.  WED also provides a pop-up ASCII table
  513.           with decimal, hexidecimal, and other display formats.
  514.  
  515.                   WED is fast, utilizing all available memory to speed
  516.           editing operations, and it supports file swapping to enable you to
  517.           edit very large files.
  518.  
  519.                   WED supports an extensive setup command that allows you to
  520.           change parameters that control the way the editor operates.  You
  521.           can make setup changes at any time during an edit session and save
  522.           them for later edit sessions.
  523.  
  524.                   The file printing command allows you to print text files
  525.           and source code listings.  Options such as page headers, page
  526.           numbering, time stamping, line numbering, and margin sizes offer a
  527.           wide variety of listing formats.
  528.  
  529.                   In addition, WED works well with the dBASE III system. It
  530.           can be set up as the default editor and/or word processor using
  531.           the TEDIT and WP keywords in your CONFIG.DB file.
  532.  
  533.  
  534.           Copyright (C) 1987-1989 Washington Computer Co.                1
  535.  
  536.  
  537.           WED 4.10                  User's Guide              Introduction
  538.  
  539.  
  540.  
  541.           1.2     MACHINE REQUIREMENTS
  542.  
  543.  
  544.                   The WED editor will run on IBM PC's and compatibles
  545.           having at least one disk drive (floppy or hard disk) and 256K
  546.           RAM.  Since the editor is compact, it leaves plenty of room for
  547.           other files on a single floppy system.  WED also works well on
  548.           hard disk systems; since the main editor is a single executable
  549.           file with no overlays, it can be placed in a default directory
  550.           and accessed via the DOS path command.
  551.  
  552.                   You can use WED with either monochrome or color
  553.           monitors.  If you have a color monitor, you can use the setup
  554.           command to select the colors that the editor will use during
  555.           edit sessions.
  556.  
  557.  
  558.           1.3     INSTALLING WED
  559.  
  560.  
  561.                   When you receive WED, it should include the following
  562.           six files:
  563.  
  564.                   READ.ME         A short text file that should be read
  565.                                   before using the editor.
  566.  
  567.                   ABOUTWED.DOC    A short text file that describes the
  568.                                   WED text editor and its many features.
  569.  
  570.                   WEDUSER.DOC     This document.
  571.  
  572.                   APPENDC.DOC     Appendix C of the WED User's manual.
  573.                                   This section of the manual has been
  574.                                   placed in a seperate file because it
  575.                                   contains special characters that some
  576.                                   printers may not be able to print.
  577.  
  578.                   WED.EXE         The WED text editor program.
  579.  
  580.                   WED.CFG         This file contains WED configuration
  581.                                   settings that are maintained with the
  582.                                   Setup command.
  583.  
  584.                   WED.HLP         This file contains the text used by
  585.                                   the help command.
  586.  
  587.                   Before you install WED, you should make a backup of the
  588.           original WED diskette, one that will function as your "master
  589.           working disk".  To do this, you need to create a formatted
  590.           bootable diskette.  Place a blank diskette in drive B and enter
  591.           the following DOS command:
  592.  
  593.  
  594.  
  595.  
  596.           Copyright (C) 1987-1989 Washington Computer Co.                2
  597.  
  598.  
  599.           WED 4.10                  User's Guide              Introduction
  600.  
  601.  
  602.  
  603.           A>FORMAT/S B:<Enter>
  604.  
  605.  
  606.                   When format is complete, move the newly formatted
  607.           diskette to drive A, and place the WED master diskette in
  608.           drive B.  Now copy all of the WED files to the new diskette with
  609.           the following DOS command:
  610.  
  611.  
  612.           A>COPY B:*.* A:<Enter>
  613.  
  614.  
  615.                   After DOS has finished copying the files, remove the WED
  616.           master diskette and put it away in a safe place, and always use
  617.           the backup copy as your principal working diskette when using
  618.           WED.  This way you will always have an extra copy if the working
  619.           diskette is damaged or lost.
  620.  
  621.                   If you are using a floppy based computer, then you are
  622.           finished with the installation and can skip over the rest of
  623.           this section.
  624.  
  625.                   If your computer has a hard disk, you will want to copy
  626.           WED to a subdirectory on the hard disk.  First you need to
  627.           create a new subdirectory.  Move to the root directory and issue
  628.           the following command:
  629.  
  630.  
  631.           C\>MKDIR WED<Enter>
  632.  
  633.  
  634.                   This will create a subdirectory call WED.  Now move into
  635.           the new subdirectory with the command:
  636.  
  637.  
  638.           C\>CD WED<Enter>
  639.  
  640.  
  641.                   Now place your new WED working diskette in drive A and
  642.           copy the files onto the hard disk:
  643.  
  644.  
  645.           C\WED>COPY A:*.* C:<Enter>
  646.  
  647.  
  648.                   If you are using DOS verion 3.00 or latter, you can
  649.           access WED via the path command, and WED will automatically be
  650.           able to find its support files, WED.CFG and WED.HLP.
  651.  
  652.                   If on the other hand, you are using a version of DOS
  653.           older than 3.00, you need set an environment variable so that
  654.           WED can find its support files.  To do this, add the following
  655.  
  656.  
  657.  
  658.           Copyright (C) 1987-1989 Washington Computer Co.                3
  659.  
  660.  
  661.           WED 4.10                  User's Guide              Introduction
  662.  
  663.  
  664.           line to your AUTOEXEC.BAT file:
  665.  
  666.  
  667.           SET WED=C:\WEDDIR
  668.  
  669.  
  670.           where "WEDDIR" is the directory in which you placed WED.
  671.  
  672.                   If you have limited disk space or are using WED from
  673.           floppy disk, you only need the three files: WED.EXE, WED.CFG, and
  674.           WED.HLP to run the WED editor.  All of the other files that come
  675.           with WED are documentation files and do not need to be on the
  676.           disk when you use WED.
  677.  
  678.                   The final step is to print out a copy of this manual. 
  679.           The manual is formatted for 8 1/2 by 11 inch paper.  The printer
  680.           should be set to a print density of ten CPI (characters per inch)
  681.           and to a print height of six lines per inch. Make sure the printer
  682.           is on-line and positioned at the top of a new page.  Then use
  683.           the DOS print command to print the manual:
  684.  
  685.  
  686.           C\>PRINT WEDUSER.DOC<Enter>
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.           Copyright (C) 1987-1989 Washington Computer Co.                4
  721.  
  722.  
  723.           WED 4.10                  User's Guide           Getting Started
  724.  
  725.  
  726.  
  727.           2       GETTING STARTED
  728.  
  729.  
  730.           2.1     STARTING WED
  731.  
  732.  
  733.                   Starting the WED editor is easy, just enter "WED" from
  734.           the DOS prompt.  Remember to complete the entry by pressing the
  735.           <Enter> key.  WED will begin the session by presenting you with
  736.           the main menu.  From the main menu you can select to edit a file,
  737.           print a file, or modify WED configuration values.
  738.  
  739.                   Sometimes you may want to move directly to editing a
  740.           file without passing through the main menu.  You can accomplish
  741.           this by typing the name of the file to edit after "WED" on the
  742.           command line:
  743.  
  744.  
  745.           C\>WED TEST.TXT<Enter>
  746.  
  747.  
  748.                   In this example, WED will move directly to the edit
  749.           mode with the file, "TEST.TXT."  If neccessary, you can specify
  750.           a drive and/or path with the file name.
  751.  
  752.  
  753.           2.2     THE MAIN MENU
  754.  
  755.  
  756.                   The WED main menu provides access to the three main
  757.           functional areas of WED, editing, printing, and setup:
  758.  
  759.  
  760.           +--------------------------------------------------------------+
  761.           |                                                              |
  762.           |   |======================================================|   |
  763.           |   |               WED TEXT EDITOR,  V 4.10               |   |
  764.           |   |                                                      |   |
  765.           |   | Copyright (C) 1989,  Washington Computer Corporation |   |
  766.           |   |======================================================|   |
  767.           |                                                              |
  768.           |                      1. Edit a file                          |
  769.           |                      2. Print a file                         |
  770.           |                      3. WED setup menu                       |
  771.           |                      4. WED ordering info                    |
  772.           |                      5. Help                                 |
  773.           |                      6. Exit WED                             |
  774.           |                                                              |
  775.           +--------------------------------------------------------------+
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.           Copyright (C) 1987-1989 Washington Computer Co.                5
  783.  
  784.  
  785.           WED 4.10                  User's Guide           Getting Started
  786.  
  787.  
  788.                   To make a selection, use the <Up> and <Down> cursor
  789.           keys to move the highlighted bar to the desired option, and
  790.           then press the <Enter> key.
  791.  
  792.                   The first option, "Edit a file," is the WED text
  793.           editing system.  When you select this option, WED will display
  794.           a listing of the files in the current directory, and then
  795.           prompt for the name of the file you wish to edit.  If the file
  796.           name you enter does not exist, WED will assume that you want to
  797.           create a new file.
  798.  
  799.                   The next option, "Print a file," is a function for
  800.           printing text files with various formatting options.  This
  801.           function can be used to print source code listings as well as
  802.           document listings.  The print file function is described in
  803.           detail in chapter nine.
  804.  
  805.                   The third option, "WED setup menu," provides access to the
  806.           various WED configuration variables.  With this function, you
  807.           can change colors, enter keyboard macros, or modify any of the
  808.           other setup parameters.  The setup function is described in
  809.           detail in chapter ten.
  810.  
  811.                   The next option, "WED ordering info," displays
  812.           information on how to order registered copies of WED.
  813.  
  814.                   The fifth option, "Help," displays a help screen which
  815.           describes the main menu options.
  816.  
  817.                   The last option, "Exit WED," causes WED to terminate
  818.           and return control to DOS.
  819.  
  820.  
  821.           2.3     THE COMMAND LINE
  822.  
  823.  
  824.                   The top line of the edit screen is reserved for the 
  825.           command line.  In the main edit command mode, the command line 
  826.           looks like this: 
  827.  
  828.  
  829.           +--------------------------------------------------------------+
  830.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  831.           |Line: 112 Col 45   Overwrite              Size: 12K Free: 248K|
  832.           |==========================| demo.c |==========================|
  833.           |    WHILE get_next_char(c) DO                                 |
  834.           |      put_next_char(c);                                       |
  835.           +--------------------------------------------------------------+
  836.  
  837.  
  838.                   This command line provides you with a quick reference of 
  839.           the WED commands.  To execute one of the commands, hold down the 
  840.           Alt key (located to the left of the space bar) and type the 
  841.  
  842.  
  843.  
  844.           Copyright (C) 1987-1989 Washington Computer Co.                6
  845.  
  846.  
  847.           WED 4.10                  User's Guide           Getting Started
  848.  
  849.  
  850.  
  851.           first letter of the command.  For example, to execute the Move 
  852.           command, hold down the Alt key and type M.  We call this 
  853.           combination of keys Alt keys.  In this example the move key 
  854.           would be denoted as Alt-M.
  855.  
  856.                   Because WED has more commands than can fit on one line, 
  857.           the Next command has been provided.  This command enables you to 
  858.           see the rest of the commands.  Type Alt-N, and WED will show you 
  859.           additional commands.
  860.  
  861.  
  862.           2.4     THE STATUS LINE
  863.  
  864.  
  865.                   The status line is the second line on the main edit 
  866.           screen. It provides you with useful information about the 
  867.           current edit session.  Below is an example of a typical status 
  868.           line:
  869.  
  870.  
  871.           +--------------------------------------------------------------+
  872.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  873.           |Line: 112 Col 45   Overwrite              Size: 12K Free: 248K|
  874.           |==========================| demo.c |==========================|
  875.           |    WHILE get_next_char(c) DO                                 |
  876.           |      put_next_char(c);                                       |
  877.           +--------------------------------------------------------------+
  878.  
  879.  
  880.                   On the left side of the line, WED displays the current
  881.           line and column at which the cursor is positioned.  The next
  882.           entry shows the current Insert mode state (overwrite or insert).
  883.           To the right of the Insert mode indicator is a space reserved
  884.           for the graphics mode indicator.  When you toggle the graphics
  885.           mode on, WED displays "Graphics" in this space.
  886.  
  887.                   The last two entries provide information about the size
  888.           of the current edit file and the amount of free space remaining
  889.           in the main edit buffer.  These values are shown in kilobytes
  890.           (1024 characters).
  891.  
  892.                   Just below the status line, there is a double line which 
  893.           separates the command and status lines from the main text 
  894.           window.  Notice that the name of the current edit file is
  895.           displayed in the center of this line.
  896.  
  897.  
  898.           2.5     THE TEXT WINDOW
  899.  
  900.  
  901.                   All of the space below the status lines is used to 
  902.           display the file text.  This area is called the text window 
  903.  
  904.  
  905.  
  906.           Copyright (C) 1987-1989 Washington Computer Co.                7
  907.  
  908.  
  909.           WED 4.10                  User's Guide           Getting Started
  910.  
  911.  
  912.  
  913.           because it acts like a window into the file.  It continuously
  914.           displays the region of the file being edited.
  915.  
  916.                   The text window will always contain the edit cursor
  917.           which is displayed as a blinking block or underline.  The cursor
  918.           indicates the current edit position in the file.  Any text you
  919.           enter will be placed in the file at the current cursor location,
  920.           and most commands you execute will start from the
  921.           cursor location.  WED provides many commands for moving the
  922.           cursor around the file, including commands for moving the cursor
  923.           to the next character, word, or line, or back to the previous
  924.           character, word or line.  These commands are described in detail
  925.           in chapter 3.  As you move the cursor through the file, WED will
  926.           adjust the text window so that it always displays the file
  927.           region surrounding the cursor location.
  928.  
  929.                   WED is designed to operate in the standard PC video mode 
  930.           in which the screen can display eighty columns per line. This is 
  931.           wide enough for most text files, but occasionally you will need 
  932.           to edit a file with lines longer than eighty columns. WED 
  933.           handles these cases with a feature call horizontal scrolling, 
  934.           which, simply stated, is the ability to scroll (move) the text 
  935.           sideways as you attempt to move the cursor past the side of the 
  936.           screen.  With horizontal scrolling, WED can edit files with 
  937.           lines as long as 32,000 columns.
  938.  
  939.                   At the end of each line WED will display a special end 
  940.           of line character that looks like two left facing arrows. This 
  941.           character indicates the presence of the standard text line 
  942.           terminating sequence, a carriage return followed by a line feed 
  943.           character.
  944.  
  945.  
  946.           2.6     THE HELP COMMAND
  947.  
  948.  
  949.                   One of the first commands you should learn is the Help 
  950.           command.  This command provides a convenient on-line reference 
  951.           guide to the WED text editor.  You can call up help screens any 
  952.           time you are not sure how to use a particular command.  Just
  953.           type Alt-H and WED will display the help menu:
  954.  
  955.  
  956.           +--------------------------------------------------------------+
  957.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  958.           |Line: 112 Col 45   Overwrite              Size: 12K Free: 248K|
  959.           |=======================|=============| WED HELP |============||
  960.           |    WHILE get_next_char| cursor   Erase     Move    Setup    ||
  961.           |      put_next_char(c);| quick    Format    Next    Text     ||
  962.           |                       |                                     ||
  963.           |                       | Use cursor keys to move, <Enter> to ||
  964.           |                       |--------| <Esc> to exit Help |-------||
  965.           +--------------------------------------------------------------+
  966.  
  967.  
  968.           Copyright (C) 1987-1989 Washington Computer Co.                8
  969.  
  970.  
  971.           WED 4.10                  User's Guide           Getting Started
  972.  
  973.  
  974.  
  975.                   Now use the cursor keys to move to the desired help
  976.           topic and then press <Enter> to view the selected help screen. 
  977.           When you have read the help screen, press <space> to return to
  978.           the help menu.  You can then select other help topics, or press
  979.           <Esc> to return to the main edit mode.
  980.  
  981.                   The Help command reads the instruction text from a file
  982.           called WED.HLP.  Before you can use the Help command, you must
  983.           make sure that the help file is available and that WED knows were
  984.           it is.  Refer to section 1.3 for directions on setting up the help
  985.           file.  If the help file is not setup correctly and you try to
  986.           invoke the Help command, WED will display an error message.
  987.  
  988.  
  989.           2.7     USING WED'S POP-UP MENUS
  990.  
  991.  
  992.                   Many of WED's editing commands communicate with you via
  993.           pop-up menus.  These menus are usually displayed in the upper
  994.           right corner of the screen, and contain a list of possible
  995.           options.  To select one of the options, use the <Up> and <Dn>
  996.           cursor keys to move the highligted menu bar to the desired
  997.           option and then press the <Enter> key.  Alternately, if you
  998.           type the first letter of the desired option, WED will
  999.           immediately select that option.
  1000.  
  1001.                   All of WED's pop-up menus have the ability to display
  1002.           help screens that describe the options and their functions in
  1003.           detail.  To access a menus help screen, either select the
  1004.           "Help" option, or type alt-H (hold down the <Alt> key and press
  1005.           the "H" key at the same time).
  1006.  
  1007.                   All of the pop-up menus allow you to abort the menu by
  1008.           pressing the <Esc> key.  When you abort a menu, WED exits that
  1009.           menu without performing any actions.
  1010.  
  1011.  
  1012.           2.8     THE QUIT COMMAND
  1013.  
  1014.  
  1015.                   When you are finished editing a file, type Alt-Q to invoke
  1016.           the quit command.  This command provides functions for saving and
  1017.           quiting the current file.
  1018.  
  1019.                   When WED saves a file, it first renames the original  copy
  1020.           of that file to .BAK, and then saves the new version of the file.
  1021.           For example, if you save the file DEMO.PAS, WED will first rename
  1022.           the original to DEMO.BAK and then will save the newly edited
  1023.           version as DEMO.PAS.  If you desire, you can use the Setup command
  1024.           to suspend the automatic backup feature.
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.           Copyright (C) 1987-1989 Washington Computer Co.                9
  1031.  
  1032.  
  1033.           WED 4.10                  User's Guide           Getting Started
  1034.  
  1035.  
  1036.  
  1037.                   Sometimes when WED is saving a new or revised file, it is
  1038.           possible to encounter a full disk or other disk problem.  If this
  1039.           occurs, WED will display an error message describing the problem
  1040.           and then prompt you as follows:
  1041.  
  1042.           Enter file to write to:
  1043.  
  1044.                   Now enter a new file name to write the revised file to.
  1045.           This name can include a new drive and/or path.
  1046.  
  1047.                   The quit command has several options described below.
  1048.  
  1049.  
  1050.           +--------------------------------------------------------------+
  1051.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1052.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1053.           |===========================| demo.c |==|======| QUIT |======|=|
  1054.           |    if (Disp_Able(c))                  | Save edit file     | |
  1055.           |        return(Col + 1);               | Keep and exit WED  | |
  1056.           |    else                               | Write and continue | |
  1057.           |        if (c == TAB)                  | Abandon file       | |
  1058.           |            return(Next_Tab(Col);      | Help               | |
  1059.           |        else                           |====================| |
  1060.           +--------------------------------------------------------------+
  1061.  
  1062.  
  1063.           2.7.1   Save edit file
  1064.  
  1065.  
  1066.                   The Save option is the most commonly used Quit option.
  1067.           Type S from the quit menu and WED will save the current file and
  1068.           then exit to the main menu.  If you are editing more than one file
  1069.           (with the Other file command), WED will exit the current file and
  1070.           switch to one of the other files.
  1071.  
  1072.  
  1073.           2.7.2   Keep and exit WED
  1074.  
  1075.  
  1076.                   The Keep option is similar to the Save option except that
  1077.           it exits to DOS instead of the main menu after saving the edit
  1078.           file.
  1079.  
  1080.  
  1081.           2.7.3   Write and continue
  1082.  
  1083.  
  1084.                   The Write option allows you to save the current edit file
  1085.           without ending that edit session.  When you select Write, WED
  1086.           saves the current edit file and then continues the edit session.
  1087.           This option is convenient when you want to periodically write your
  1088.           changes to disk during a long edit session.
  1089.  
  1090.  
  1091.  
  1092.           Copyright (C) 1987-1989 Washington Computer Co.               10
  1093.  
  1094.  
  1095.           WED 4.10                  User's Guide           Getting Started
  1096.  
  1097.  
  1098.  
  1099.           2.7.4   Abandon file
  1100.  
  1101.  
  1102.                   With the abandon option, you can exit the current file
  1103.           without saving the file to disk.  Any changes you have made
  1104.           during the current edit session will be lost.  This option is
  1105.           useful when you have made a serious error during the edit session.
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.           Copyright (C) 1987-1989 Washington Computer Co.               11
  1155.  
  1156.  
  1157.           WED 4.10                  User's Guide             Moving Around
  1158.  
  1159.  
  1160.  
  1161.           3       MOVING AROUND THE FILE
  1162.  
  1163.  
  1164.           3.1     MOVING AROUND THE SCREEN
  1165.  
  1166.  
  1167.                   With WED you can easily move the cursor around in your
  1168.           file by character, word, line, or page. You can even move to the
  1169.           beginning or end of a file with a few keystrokes.
  1170.  
  1171.                   Moving with cursor control commands does not affect your
  1172.           text.  The cursor simply moves through words without changing
  1173.           them.
  1174.  
  1175.  
  1176.           3.1.1   The Arrow Keys
  1177.  
  1178.                   The WED editor provides many commands for moving the
  1179.           cursor around the screen.  The most often used are the arrow keys
  1180.           on the numeric keypad at the right of the keyboard.  The left and
  1181.           right arrow keys move the cursor one character to the left and
  1182.           right respectively.  Notice that when you try to move right past
  1183.           the end of the line, the cursor is moved to the first character of
  1184.           the next line, and conversely, if you try to move left past the
  1185.           first column of the line, the cursor will move up to the last
  1186.           character on the line above.
  1187.  
  1188.                   An easier way to move the cursor up or down one line is
  1189.           provided with the up and down arrow keys.  The up arrow key moves
  1190.           the cursor up one line.  If possible, WED will move the cursor to
  1191.           the same column in the above line. If the line above does not
  1192.           extend out to the current column, then the cursor will be placed
  1193.           on the last character of that line.  The down arrow key performs
  1194.           just like the up key, but in the opposite direction.
  1195.  
  1196.                   There is another key that performs a similar function to
  1197.           the down cursor key.  Pressing the <Enter> key moves the cursor to
  1198.           the first character of the next line.
  1199.  
  1200.  
  1201.           3.1.2   The Home and End Keys
  1202.  
  1203.  
  1204.                   There are more keys that provide for convenient movement
  1205.           of the cursor.  Pressing the Home key moves the cursor to the
  1206.           first character on the current line, and pressing the End key
  1207.           moves the cursor to the last character of the line.
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.           Copyright (C) 1987-1989 Washington Computer Co.               12
  1217.  
  1218.  
  1219.           WED 4.10                  User's Guide             Moving Around
  1220.  
  1221.  
  1222.  
  1223.           3.1.3   The Right Word and Left Word Commands
  1224.  
  1225.  
  1226.                   The Right Word and Left Word commands are similar to the
  1227.           right and left arrow keys, only they work in increments of words
  1228.           instead of characters.  To use these commands, hold down the
  1229.           control key while pressing either the right or left
  1230.           cursor key.  Typing ctrl-<right arrow> moves the cursor to the
  1231.           first character of the next word in the file, and typing
  1232.           ctrl-<left arrow> moves the cursor to the first character of the
  1233.           previous word (next word to the left) in the file.
  1234.  
  1235.  
  1236.           3.1.4   The Next Space Command
  1237.  
  1238.  
  1239.                   The Next Space command is similar to the Right Word
  1240.           command.  Press the tab key, and WED will move the cursor to the
  1241.           next space or carriage return character in the file.
  1242.  
  1243.  
  1244.           3.2     THE SCROLL COMMANDS
  1245.  
  1246.  
  1247.                   There are two types of scrolling in the WED editor,
  1248.           vertical scrolling and horizontal scrolling.  With vertical
  1249.           scrolling, the entire text window is moved up or down a line at
  1250.           a time.  WED automatically performs vertical scrolling when you
  1251.           try to move the cursor past the top or the bottom edges of the
  1252.           text window.  With the scrolling commands, you can scroll the
  1253.           text window without moving the cursor (unless it is at the top
  1254.           or bottom of text window).  Type ctrl-<PgUp> to scroll the text
  1255.           up, or ctrl-<PgDn> to scroll the text down.
  1256.  
  1257.                   Horizontal scrolling is similar to vertical scrolling,
  1258.           except that the text window is move left or right a column at a
  1259.           time.  As with vertical scrolling, WED automatically scrolls the
  1260.           text window left or right when you move the cursor past the left
  1261.           or right margins.  To perform horizontal scrolling without
  1262.           moving the cursor, type ctrl-<Home> to scroll left or ctrl-<End>
  1263.           to scroll right.  Remember, WED requires that the cursor remain
  1264.           in the text window and on one of the characters in the file.
  1265.           This means that you can not scroll the screen left if the cursor
  1266.           is in left column of the screen and on the last character of a
  1267.           line.
  1268.  
  1269.  
  1270.           3.3     UP SCREEN AND DOWN SCREEN
  1271.  
  1272.  
  1273.                   The up and down arrow keys are fine for moving around
  1274.           the screen, but sometimes you need to move the cursor more than
  1275.  
  1276.  
  1277.  
  1278.           Copyright (C) 1987-1989 Washington Computer Co.               13
  1279.  
  1280.  
  1281.           WED 4.10                  User's Guide             Moving Around
  1282.  
  1283.  
  1284.  
  1285.           just a couple of lines.  The up screen and down screen functions
  1286.           are useful for these situations.  These commands move the cursor
  1287.           an entire screen at a time. This is twenty-two lines when in the
  1288.           full screen mode, and ten or eleven lines when in the split
  1289.           screen mode.
  1290.  
  1291.                   The Down Screen function is activated by pressing the
  1292.           <PgDn> key, and the Up Screen function by pressing the <PgUp>
  1293.           key.  Both of these functions can be used with a repeat
  1294.           factor to move large distances through the file.  Repeat factors
  1295.           are explained below.
  1296.  
  1297.  
  1298.           3.4     REPEAT FACTORS
  1299.  
  1300.  
  1301.                   Sometimes, when moving around the file, it is necessary
  1302.           to repeat a command several times.  For example, if you want to
  1303.           move the cursor down five screens of text, you have to press the
  1304.           <PgDn> key five times.  WED provides an easier way of repeating
  1305.           a command.
  1306.  
  1307.                   You can enter a repeat factor before a command to tell
  1308.           WED how many times to execute the command.  To enter a repeat
  1309.           factor, use the numeric keypad on the right side of the
  1310.           keyboard.  Hold down the shift key and type the number (between
  1311.           1 and 9999) and then the appropriate command key.  For example
  1312.           to move the cursor down 9 screens, type the following:
  1313.           shift-9<PgDn>.
  1314.  
  1315.                   Repeat factors are also useful when setting up repeat
  1316.           loops in command macros.  For more information on command
  1317.           macros, refer to chapters 5 and 8.
  1318.  
  1319.  
  1320.           3.5     THE GOTO FUNCTION
  1321.  
  1322.  
  1323.                   The Goto command provides a means for quickly moving the
  1324.           cursor to a particular place in the file.  With the Top and
  1325.           Bottom subcommands, you can move directly to the top or the
  1326.           bottom of the file.  The Line subcommand enables you to move
  1327.           directly to any line by specifying a particular line number.
  1328.           Also, the Goto command allows you to move directly to any
  1329.           pointer you have set during the edit session.  For more
  1330.           information on pointers, refer the section on setting pointers.
  1331.  
  1332.                   To invoke Goto, type Alt-G and WED will display the Goto
  1333.           menu:
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.           Copyright (C) 1987-1989 Washington Computer Co.               14
  1341.  
  1342.  
  1343.           WED 4.10                  User's Guide             Moving Around
  1344.  
  1345.  
  1346.  
  1347.           +--------------------------------------------------------------+
  1348.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1349.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1350.           |===========================| demo.c |============|=| GOTO |=|=|
  1351.           |    if (Disp_Able(c))                            | Top      | |
  1352.           |        return(Col + 1);                         | Bottom   | |
  1353.           |    else                                         | Line #   | |
  1354.           |        if (c == TAB)                            | 1    154 | |
  1355.           |            return(Next_Tab(Col);                | Help     | |
  1356.           |        else                                     |==========| |
  1357.           +--------------------------------------------------------------+
  1358.  
  1359.  
  1360.                   If any pointers are set, they will be listed along with
  1361.           the number of the line on which they are set.  In the above
  1362.           example, pointer one has been set on line 154.
  1363.  
  1364.  
  1365.           3.5.1   Goto Top
  1366.  
  1367.  
  1368.                   Select "Top" to move the cursor directly to the top of
  1369.           the current edit file.
  1370.  
  1371.  
  1372.           3.5.2   Goto Bottom
  1373.  
  1374.  
  1375.                   Select "Bottom" to move the cursor to the bottom (end)
  1376.           of the current edit file.
  1377.  
  1378.  
  1379.           3.5.3   Goto Line Number
  1380.  
  1381.  
  1382.                   To move directly to a particular line, select "Line #"
  1383.           and WED will prompt as follows:
  1384.  
  1385.  
  1386.           +--------------------------------------------------------------+
  1387.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1388.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1389.           |===========================| demo.c |============|=| GOTO |=|=|
  1390.           |    if (Disp_Able(c))                            | Top      | |
  1391.           |        return(Col + 1);                         | Bottom   | |
  1392.           |    else                                         | Line #   | |
  1393.           |        if (c == TAB)         |=======| Goto Line |======|4 | |
  1394.           |            return(Next_Tab(Co| Enter line number: _____ |  | |
  1395.           |        else                  |==========================|==| |
  1396.           +--------------------------------------------------------------+
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.           Copyright (C) 1987-1989 Washington Computer Co.               15
  1403.  
  1404.  
  1405.           WED 4.10                  User's Guide         Changing the File
  1406.  
  1407.  
  1408.  
  1409.                   Enter the number of the line you wish to go to, and WED
  1410.           will move the cursor to that line.
  1411.  
  1412.  
  1413.           3.5.4   Goto Pointer
  1414.  
  1415.  
  1416.                   If you have set any of WED's eight edit pointers, you
  1417.           can move the cursor directly to one of them by selecting that
  1418.           pointer from the Goto Menu.
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.           Copyright (C) 1987-1989 Washington Computer Co.               16
  1465.  
  1466.  
  1467.           WED 4.10                  User's Guide         Changing the File
  1468.  
  1469.  
  1470.  
  1471.           4       CHANGING THE FILE
  1472.  
  1473.  
  1474.           4.1     ENTERING TEXT
  1475.  
  1476.  
  1477.                   When you first enter WED, the editor is in overwrite
  1478.           mode.  This is the mode from which you perform most of the
  1479.           editing functions including text entry.  Entering text is easy.
  1480.           Just type the text the way you want it to appear.  As you type
  1481.           each character, it appears on the screen at the current cursor
  1482.           position and the cursor then moves one character to the right.
  1483.           If the cursor is positioned over an existing character in the
  1484.           text, then the character you type will overwrite the existing
  1485.           character.
  1486.  
  1487.                   There are several special cases when entering text at
  1488.           the main edit mode.  WED will never allow you to overwrite a
  1489.           carriage return.  If you enter new text while the cursor is
  1490.           positioned at the end of a line, then the text will be inserted
  1491.           ahead of the carriage return.  Another special case concerns the
  1492.           operation of the <Enter> key.  Normally, when you press this
  1493.           key, the cursor moves to the first character of the next line.
  1494.           There is an exception to this though.  If the cursor is
  1495.           positioned at the bottom of the file and you strike the <Enter>
  1496.           key, then WED will insert a carriage return and move the cursor
  1497.           to the beginning of the new line.
  1498.  
  1499.  
  1500.           4.2     INSERTING TEXT
  1501.  
  1502.  
  1503.                   There are four commands for inserting text into a file.
  1504.           The first two commands, Insert Space and Insert Carriage Return,
  1505.           are useful for inserting just a few characters into a file.  The
  1506.           Insert Space command inserts a space character at the cursor
  1507.           location.  To use this command, place the cursor at the position
  1508.           you want to insert a new character, press the grey plus <+> key
  1509.           located on the right keypad, and WED will insert a space at the
  1510.           cursor location.
  1511.  
  1512.                   You can also use the Insert Space command to insert
  1513.           characters other than spaces into your file.  First press the
  1514.           grey <+> key to insert the space.  Notice that WED leaves the
  1515.           cursor on the newly inserted space.  Now just type the character
  1516.           you want to insert and it will overwrite the new space.
  1517.  
  1518.                   Another useful command for quick insertions is the
  1519.           New line command.  This command inserts a carriage return at the
  1520.           cursor location.  To use this command, hold down the <Ctrl> key
  1521.           and type M (Ctrl-M).
  1522.  
  1523.  
  1524.  
  1525.  
  1526.           Copyright (C) 1987-1989 Washington Computer Co.               17
  1527.  
  1528.  
  1529.           WED 4.10                  User's Guide         Changing the File
  1530.  
  1531.  
  1532.  
  1533.                   The other two insert commands are more useful when you
  1534.           need to insert larger amounts of text.  Both commands perform
  1535.           similar functions, but with different approaches.  When using
  1536.           WED, you can use either command to perform general text
  1537.           inserting.  Which command you choose will depend mostly on you
  1538.           personal preferences.
  1539.  
  1540.                   The first of these commands, the insert mode, is activated
  1541.           by typing Alt-I.  When WED is in the insert mode, you can continue
  1542.           to move around the file and execute commands just like the
  1543.           overwrite mode.  The difference is, any text you type in the
  1544.           insert mode will be inserted ahead of the current cursor location.
  1545.  
  1546.                   The last command is the Insert command.  This command
  1547.           also allows you to enter continuous text.  But, unlike the
  1548.           insert mode, you can not perform other editing tasks while
  1549.           using the Insert command.  The Insert command is sometimes
  1550.           easier to use than the insert mode because it opens a blank
  1551.           area on the screen in which you enter text.  You may find this
  1552.           helps you visualize what you are typing.
  1553.  
  1554.                   To use this command, move the cursor to the character in
  1555.           front of which you want to insert text, and press the <Ins> key to
  1556.           enter the Insert mode.  WED will then open two blank lines in
  1557.           which you can begin entering new text.
  1558.  
  1559.  
  1560.           +--------------------------------------------------------------+
  1561.           |INSERT: Enter text, then <Ins>                                |
  1562.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1563.           |===========================| demo.c |=========================|
  1564.           |    if (Disp_Able(c))                                         |
  1565.           |                                                              |
  1566.           |                                                              |
  1567.           |        return(Col + 1);                                      |
  1568.           +--------------------------------------------------------------+
  1569.  
  1570.  
  1571.                   You can now enter the text you wish to insert.  While
  1572.           you are in Insert mode, there are two keys available for
  1573.           correcting mistakes: the backspace key (the key directly above
  1574.           the <Enter> key) will erase the last character entered, and the
  1575.           <Home> key will erase all of the characters entered on the
  1576.           current line.
  1577.  
  1578.                   As you add lines, the text below the insert will
  1579.           automatically drop down to make more room.  If auto indent mode
  1580.           is turned on, WED will insert spaces for indentation at the
  1581.           beginning of each new line.  Refer to section 6.1 for more
  1582.           information on auto indenting.  When you have typed all that you
  1583.           want to insert, type Alt-I or press the <Ins> to exit insert
  1584.           mode.  The gap after the inserted text will be closed, and the
  1585.  
  1586.  
  1587.  
  1588.           Copyright (C) 1987-1989 Washington Computer Co.               18
  1589.  
  1590.  
  1591.           WED 4.10                  User's Guide         Changing the File
  1592.  
  1593.  
  1594.  
  1595.           command line will return to its normal state.
  1596.  
  1597.                   You can abort an insert session by pressing the <Esc>
  1598.           key while in insert mode.  WED will prompt you with the question
  1599.           "ABORT(Y/N)?" in the upper right hand corner of the screen.
  1600.           Enter "N" to continue inserting, or "Y", to abort the inserted
  1601.           text.  If you choose yes, the text you have inserted will be
  1602.           erased and WED will return to the command mode.
  1603.  
  1604.  
  1605.           4.3     ERASING TEXT
  1606.  
  1607.  
  1608.                   WED provides three commands for erasing text from a
  1609.           file.  The first two commands, Delete Character and Erase, are
  1610.           described in this section.  The third command, Zap, is described
  1611.           in section 5.4.
  1612.  
  1613.                   The Delete Character command is best for erasing just a
  1614.           few characters.  There are two variations of this command:
  1615.           Delete Left and Delete cursor.  To delete left, press the
  1616.           backspace key and WED will delete the character immediately to
  1617.           the left of the cursor.  To delete cursor, press the minus key
  1618.           (located at the far right on the keyboard) and the character
  1619.           under the cursor will be deleted.
  1620.  
  1621.                   For removing more than a few characters at a time, the
  1622.           Erase command is more practical.  This command is invoked by
  1623.           typing Alt-E or by pressing the <Del> key.  To use the command,
  1624.           move the cursor to the first character of the section of text
  1625.           that you want to remove.  Then type Alt-E or <Del> and the
  1626.           following prompt will be displayed:
  1627.  
  1628.  
  1629.           +--------------------------------------------------------------+
  1630.           |ERASE: Move Cursor, then <Del>                                |
  1631.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1632.           |===========================| demo.c |=========================|
  1633.           |    if (Disp_Able(c))                                         |
  1634.           |        return(Col + 1);                                      |
  1635.           |    else                                                      |
  1636.           |        if (c == TAB)                                         |
  1637.           +--------------------------------------------------------------+
  1638.  
  1639.  
  1640.                   Now use the standard cursor movement commands to move
  1641.           the cursor to the last character of the text to be removed. As
  1642.           you move the cursor, the text between the starting point and the
  1643.           cursor will be shown in low intensity to designate that text as
  1644.           marked for erasure.  Notice that you can move the cursor to the
  1645.           left and/or up to un-mark text. When the cursor is on the last
  1646.           character of the text to be erased, type Alt-E or <Del> and the
  1647.  
  1648.  
  1649.  
  1650.           Copyright (C) 1987-1989 Washington Computer Co.               19
  1651.  
  1652.  
  1653.           WED 4.10                  User's Guide         Changing the File
  1654.  
  1655.  
  1656.  
  1657.           text will be removed.  If, while you are using the erase
  1658.           command, you decide that you really don't want to erase this
  1659.           text, you can press the <Esc> key and WED will abort the Erase
  1660.           command.
  1661.  
  1662.                   If you use the Erase command to delete a large block of
  1663.           text you may encounter the message, "text too large for delete
  1664.           buffer, ok to delete anyway?"  This means the the block of text
  1665.           you are about to delete is too large to fit in the delete buffer
  1666.           and thus you will not be able to later retrieve the text using
  1667.           the Undelete command.  Type "Y" to complete the Erase operation,
  1668.           or type "N" to cancel the command.
  1669.  
  1670.  
  1671.           4.4     LOCATING AND REPLACING TEXT
  1672.  
  1673.  
  1674.                   You can locate, locate and replace, or locate and delete
  1675.           any word or phrase (string of characters) in your file by using
  1676.           the Locate and Replace commands.  Your string can be as long as
  1677.           66 characters.
  1678.  
  1679.                   Type Alt-L to invoke the Locate command:
  1680.  
  1681.  
  1682.           +--------------------------------------------------------------+
  1683.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1684.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1685.           |====|=====================| LOCATE |========================|=|
  1686.           |    | Enter text, then <Ret>                                | |
  1687.           |    |                                                       | |
  1688.           |    |=======================================================| |
  1689.           |        if (c == TAB)                                         |
  1690.           |            return(Next_Tab(Col));                            |
  1691.           +--------------------------------------------------------------+
  1692.  
  1693.  
  1694.                   Now type the word or phrase you wish to locate.  If you
  1695.           make any errors, WED provides some basic editing functions for
  1696.           correcting the entry.  The left and right cursor keys move the
  1697.           cursor left and right, and the Home and End keys move the cursor
  1698.           to the beginning or the end of the entry.  Both the minus key
  1699.           and the <Del> key delete the character under the cursor.  The
  1700.           plus key inserts a space at the cursor, and the <Ins> key
  1701.           toggles between insert mode and overwrite mode.  Finally,
  1702.           typeing ctrl-<End> deletes from the cursor to the end of the
  1703.           entry.  When the entry is correct, press the return key and WED
  1704.           will then prompt you for options:
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.           Copyright (C) 1987-1989 Washington Computer Co.               20
  1713.  
  1714.  
  1715.           WED 4.10                  User's Guide         Changing the File
  1716.  
  1717.  
  1718.  
  1719.           +--------------------------------------------------------------+
  1720.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1721.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1722.           |====|=====================| LOCATE |========================|=|
  1723.           |    | Enter text, then <Ret>                                | |
  1724.           |    | line_number                                           | |
  1725.           |    |==============================|=====| Options |======|=| |
  1726.           |        if (c == TAB)              | occurences     1     |   |
  1727.           |            return(Next_Tab(Col)); | Backward             |   |
  1728.           |        else                       | Whole words only     |   |
  1729.           |            if (c == CR)           | Ignore case          |   |
  1730.           |                return(1);         | Help                 |   |
  1731.           |            else                   |=| <Space> to select =|   |
  1732.           |                if (c < ' ')                                  |
  1733.           +--------------------------------------------------------------+
  1734.  
  1735.  
  1736.                   These options are explained in section 4.4.1.  To search
  1737.           without options, just press the return key.  WED will then search
  1738.           from the current cursor location down towards the end of the
  1739.           file.  If it finds the phrase you entered, the cursor will be
  1740.           moved to that location in the file.  If it cannot find the
  1741.           phrase, the cursor will not be moved.
  1742.  
  1743.                   If you then want to locate the next occurrence of the
  1744.           same phrase, type Ctrl-L (hold down the <Ctrl> key while pressing
  1745.           the L key) and WED will locate the next occurrence of that phrase
  1746.           using the same locate options.
  1747.  
  1748.                   There is an additional feature for the Locate command
  1749.           which can be activated with the Setup command.  When you set the
  1750.           Locate key flag to keep, WED will remember each time you try to
  1751.           locate a phrase.  The next time you issue the Locate command, WED
  1752.           will display the search phrase from the last time you issued the
  1753.           command.  You can then edit that phrase or type in a new one. 
  1754.           This feature is convenient when you perform many searches for
  1755.           similar phrases.  For more information on selecting this feature,
  1756.           refer to section 9.3.
  1757.  
  1758.                   The Replace command is similar to the Locate command. To
  1759.           invoke it, type Alt-R:
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.           Copyright (C) 1987-1989 Washington Computer Co.               21
  1775.  
  1776.  
  1777.           WED 4.10                  User's Guide         Changing the File
  1778.  
  1779.  
  1780.  
  1781.           +--------------------------------------------------------------+
  1782.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1783.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1784.           |====|=====================| REPLACE |=======================|=|
  1785.           |    | Enter old text, then <Ret>                            | |
  1786.           |    |                                                       | |
  1787.           |    |                                                       | |
  1788.           |    |                                                       | |
  1789.           |    |=======================================================| |
  1790.           |            if (c == CR)                                      |
  1791.           +--------------------------------------------------------------+
  1792.  
  1793.  
  1794.                   Now type the word or phrase you wish to replace.
  1795.           Complete the entry by pressing the return key.  WED will then
  1796.           prompt you for the replacement word or phrase:
  1797.  
  1798.  
  1799.           +--------------------------------------------------------------+
  1800.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1801.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1802.           |====|=====================| REPLACE |=======================|=|
  1803.           |    | Enter old text, then <Ret>                            | |
  1804.           |    | line_number                                           | |
  1805.           |    | Enter new text, then <Ret>                            | |
  1806.           |    |                                                       | |
  1807.           |    |=======================================================| |
  1808.           |            if (c == CR)                                      |
  1809.           +--------------------------------------------------------------+
  1810.  
  1811.  
  1812.                   Now enter the replacement string and complete the entry
  1813.           with the Enter key.  The options prompt will then be displayed:
  1814.  
  1815.  
  1816.           +--------------------------------------------------------------+
  1817.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1818.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1819.           |====|=====================| REPLACE |=======================|=|
  1820.           |    | Enter old text, then <Ret>                            | |
  1821.           |    | line_number                                           | |
  1822.           |    | Enter new text, then <Ret>                            | |
  1823.           |    | new_line_number                                       | |
  1824.           |    |==============================|=====| Options |======|=| |
  1825.           |            if (c == CR)           | occurences     1     |   |
  1826.           |                return(1);         | Backward             |   |
  1827.           |            else                   | Whole words only     |   |
  1828.           |                if (c < ' ')       | Ignore case          |   |
  1829.           |                    return(col + 2)| No query             |   |
  1830.           |                else               | Global               |   |
  1831.           |                    return(col + 1)| Help                 |   |
  1832.           |                                   |=| <Space> to select =|   |
  1833.           +--------------------------------------------------------------+
  1834.  
  1835.  
  1836.           Copyright (C) 1987-1989 Washington Computer Co.               22
  1837.  
  1838.  
  1839.           WED 4.10                  User's Guide         Changing the File
  1840.  
  1841.  
  1842.  
  1843.                   To replace without options, just press the Enter key.
  1844.           WED will then search from the current cursor location down
  1845.           towards the end of the file.  If it finds the phrase you
  1846.           entered, the cursor will be moved to that location in the file,
  1847.           and the prompt "REPLACE?" will appear in the upper right corner
  1848.           of the screen.  Type "Y" and the string will be replaced.  If WED
  1849.           cannot find the phrase, the cursor will be left in its original
  1850.           position. 
  1851.  
  1852.                   If you want to perform the same replacement on the next
  1853.           occurrence of the string, type Ctrl-R and WED will repeat the
  1854.           Replace command, using the same search and replacement strings
  1855.           and the same options.
  1856.  
  1857.  
  1858.           4.4.1   Locate and Replace Options
  1859.  
  1860.  
  1861.                   Six options help you to define the scope of your locate or
  1862.           replace operation, each in a specific way.  When you just press
  1863.           the return key at the options prompt, WED looks for an exact
  1864.           string of characters and conducts the search forward from the
  1865.           current cursor position.  The options give you considerably more
  1866.           flexibility.  You can choose none, one or several of the options.
  1867.           To select an option, use to cursor keys to move the cursor bar to
  1868.           the desired option.  Then just press the <space> key to select
  1869.           that option.  Pressing the <space> key again will deselect that
  1870.           option.  You can also select or deselect an option by typing the
  1871.           first letter of the option.  For example, type "B" to select
  1872.           "Backward."  When you have select your desired options, press the
  1873.           <Enter> key and WED will begin searching. Each of the available
  1874.           options is described in the following paragraphs.
  1875.  
  1876.  
  1877.           4.4.1.1 Occurrences
  1878.  
  1879.  
  1880.                   Both the Locate and Replace commands allow you to
  1881.           specify the number of times to peform the operation.  This is
  1882.           referred to in the options menu as "occurrences."  The default
  1883.           value is one which means locate (or replace) the first
  1884.           occurrence of the phrase.  To change this value just enter the
  1885.           desired number from any position in the options menu.  Notice
  1886.           that the value is displayed next to the "occurrences" prompt. 
  1887.           You can correct the entry by using the <backspace> key.
  1888.  
  1889.  
  1890.           4.4.1.2 Backwards Option
  1891.  
  1892.  
  1893.                   The Backward option, causes WED to search backward from
  1894.           the current cursor location to the beginning of the file.  It can
  1895.  
  1896.  
  1897.  
  1898.           Copyright (C) 1987-1989 Washington Computer Co.               23
  1899.  
  1900.  
  1901.           WED 4.10                  User's Guide         Advanced Commands
  1902.  
  1903.  
  1904.  
  1905.           be used with either the Locate or the Replace command.'
  1906.  
  1907.  
  1908.           4.4.1.3 Whole Words Option
  1909.  
  1910.  
  1911.                   The whole words option instructs WED to search for whole
  1912.           words only.  WED will skip over strings that are embedded in
  1913.           other words.  For example, if your search string is "the" and the
  1914.           cursor is at the beginning of the following line:
  1915.  
  1916.  
  1917.           "and then the . . ."
  1918.  
  1919.  
  1920.           Locate will not stop at "then" even though it begins with the
  1921.           string "the".  Instead, Locate will stop at the whole word "the".
  1922.  
  1923.  
  1924.           4.4.1.4 Ignore Case Option
  1925.  
  1926.  
  1927.                   The ignore case option instructs WED to ignore the
  1928.           difference between upper and lower case letters.  It will find all
  1929.           occurrences of the string, regardless of which letters are
  1930.           capitalized.
  1931.  
  1932.  
  1933.           4.4.1.5 No Query Option
  1934.  
  1935.  
  1936.                   The No Query option, only pertains to the Replace command.
  1937.           Normally, the Replace command asks for your approval before each
  1938.           replace operation.  With the No Query option, you instruct WED to
  1939.           replace without querying for approval.  This feature is useful
  1940.           when performing multiple replaces.  When replacing with the No
  1941.           Query option, WED will show you each replacement as it occurs,
  1942.           unless you also choose the Global option, in which case WED
  1943.           performs all replacements before showing the altered file.
  1944.  
  1945.  
  1946.           4.4.1.6 Global Option
  1947.  
  1948.  
  1949.                   With the Global option you can instruct WED to replace all
  1950.           occurrences of your string in the entire file.  WED will start
  1951.           processing at the beginning of the file and work towards the end.
  1952.           If you use this option in conjunction with the Backward option,
  1953.           WED will start at the end of the file and work towards the
  1954.           beginning.  When you use this option with the No Query option,
  1955.           WED will perform all replaces before showing you the altered file.
  1956.  
  1957.  
  1958.  
  1959.  
  1960.           Copyright (C) 1987-1989 Washington Computer Co.               24
  1961.  
  1962.  
  1963.           WED 4.10                  User's Guide         Advanced Commands
  1964.  
  1965.  
  1966.  
  1967.           5       ADVANCED COMMANDS
  1968.  
  1969.  
  1970.           5.1     SETTING POINTERS
  1971.  
  1972.  
  1973.                   WED allows you to set up to eight pointers in the text
  1974.           while you are editing.  These pointers can be used for quick
  1975.           cursor movement with the Goto command, or they can be used to
  1976.           mark text for block commands such as Move and Copy which are
  1977.           described below.
  1978.  
  1979.                   To set a pointer, you must first move the cursor to the
  1980.           location you want to place the pointer.  Then type Alt-P to
  1981.           invoke the Pointer command:
  1982.  
  1983.  
  1984.           +--------------------------------------------------------------+
  1985.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  1986.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  1987.           |===========================| demo.c |=========|=| POINTER |=|=|
  1988.           |    if (Disp_Able(c))                         | 1   154     | |
  1989.           |        return(Col + 1);                      | 2           | |
  1990.           |    else                                      | 3           | |
  1991.           |[4]        if (c == TAB)                      | 4    45     | |
  1992.           |            return(Next_Tab(Col));            | 5           | |
  1993.           |        else                                  | 6           | |
  1994.           |            if (c == CR)                      | 7           | |
  1995.           |                return(1);                    | 8           | |
  1996.           |            else                              | Help        | |
  1997.           |                if (c < ' ')                  |==| <Esc> |==| |
  1998.           +--------------------------------------------------------------+
  1999.  
  2000.  
  2001.                   If any of the pointers are already set, the number of the
  2002.           line on which they are set will be displayed next to the pointer
  2003.           number.  In addition, if any of the pointers are set to a position
  2004.           within the text window, their position in the text will be
  2005.           indicated with the pointer number enclosed in square brackets.  In
  2006.           the example screen above, pointers one and four have been set. 
  2007.           Pointer four's position falls within the edit window and is
  2008.           indicated by "[4]."
  2009.  
  2010.                   Now just select one of the pointers to set it to the
  2011.           current cursor location.  If you pick a pointer that is already
  2012.           set, it will forget the old location and be set to the current
  2013.           location.  WED will indicate the new setting by displaying the
  2014.           pointer number in square brackets at the new pointer position in
  2015.           the text.
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.           Copyright (C) 1987-1989 Washington Computer Co.               25
  2023.  
  2024.  
  2025.           WED 4.10                  User's Guide         Advanced Commands
  2026.  
  2027.  
  2028.  
  2029.           5.2     MOVING TEXT
  2030.  
  2031.  
  2032.                   The Move command moves a marked section of text from one
  2033.           part of a file to another.  This is a useful command if you want
  2034.           to move an entire paragraph or section of a file to another
  2035.           location within the file.
  2036.  
  2037.                   Before you can execute the Move command, you must place
  2038.           pointers at the beginning and the end of the block of text that
  2039.           you want to move.  After you have marked the block to be moved,
  2040.           move the cursor to the desired target location. Now invoke the
  2041.           Move command by typing Alt-M:
  2042.  
  2043.  
  2044.           +--------------------------------------------------------------+
  2045.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2046.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2047.           |====|=======================| MOVE |========================|=|
  2048.           |    | Top Bottom Current 1 2  starting at                   | |
  2049.           |    |====================| H for Help |=====================| |
  2050.           |    else                                                      |
  2051.           |        if (c == TAB)                                         |
  2052.           |            return(Next_Tab(Col));                            |
  2053.           +--------------------------------------------------------------+
  2054.  
  2055.  
  2056.                   In this example, pointers number 1 and 2 have been set, as
  2057.           indicated by the "1" and the "2" in the prompt line. Now enter the
  2058.           number of the pointer that marks the beginning of the block to be
  2059.           moved.  Note that you can also use the Top, Bottom, or Current
  2060.           location as an end point.  After you have entered the first
  2061.           pointer number (in this example, 1), the prompt will change to the
  2062.           following:
  2063.  
  2064.  
  2065.           +--------------------------------------------------------------+
  2066.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2067.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2068.           |====|=======================| MOVE |========================|=|
  2069.           |    | Top Bottom Current 1 2  starting at 1,  ending at     | |
  2070.           |    |====================| H for Help |=====================| |
  2071.           |    else                                                      |
  2072.           |        if (c == TAB)                                         |
  2073.           |            return(Next_Tab(Col));                            |
  2074.           +--------------------------------------------------------------+
  2075.  
  2076.  
  2077.                   Now enter the number of the pointer that marks the end
  2078.           of the block to be moved, and WED will move the block of text to
  2079.           the current cursor location.
  2080.  
  2081.  
  2082.  
  2083.  
  2084.           Copyright (C) 1987-1989 Washington Computer Co.               26
  2085.  
  2086.  
  2087.           WED 4.10                  User's Guide         Advanced Commands
  2088.  
  2089.  
  2090.  
  2091.           5.3     COPYING TEXT
  2092.  
  2093.  
  2094.                   The Copy command makes a duplicate copy of a marked
  2095.           section of text in the file and places that copy at the current
  2096.           cursor location.  This is a useful command if you want to repeat
  2097.           a section of your text once or more in a file.
  2098.  
  2099.                   Before you can execute the Copy command, you must place
  2100.           pointers at the beginning and the end of the block of text that
  2101.           you want to copy.  After you have marked the block to be copied,
  2102.           move the cursor to the desired target location. Now invoke the
  2103.           Copy command by typing Alt-C.
  2104.  
  2105.  
  2106.           +--------------------------------------------------------------+
  2107.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2108.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2109.           |====|=======================| COPY |========================|=|
  2110.           |    | Top Bottom Current 1 4  starting at                   | |
  2111.           |    |====================| H for Help |=====================| |
  2112.           |    else                                                      |
  2113.           |        if (c == TAB)                                         |
  2114.           |            return(Next_Tab(Col));                            |
  2115.           +--------------------------------------------------------------+
  2116.  
  2117.  
  2118.                   In this example, pointers number 1 and 2 have been set as
  2119.           indicated by the "1" and the "4" in the prompt line. Now enter the
  2120.           number of the pointer that marks the beginning of the block to be
  2121.           copied.  Note that you can also use the Top, Bottom, or Current
  2122.           location as an end point.  After you have entered the first
  2123.           pointer number (in this example, 1), the prompt will change to the
  2124.           following:
  2125.  
  2126.  
  2127.           +--------------------------------------------------------------+
  2128.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2129.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2130.           |====|=======================| COPY |========================|=|
  2131.           |    | Top Bottom Current 1 4  starting at 1,  ending at     | |
  2132.           |    |====================| H for Help |=====================| |
  2133.           |    else                                                      |
  2134.           |        if (c == TAB)                                         |
  2135.           |            return(Next_Tab(Col));                            |
  2136.           +--------------------------------------------------------------+
  2137.  
  2138.  
  2139.                   Now enter the number of the pointer that marks the end
  2140.           of the block to be copied, and WED will copy the block of text
  2141.           to the current cursor location.
  2142.  
  2143.  
  2144.  
  2145.  
  2146.           Copyright (C) 1987-1989 Washington Computer Co.               27
  2147.  
  2148.  
  2149.           WED 4.10                  User's Guide         Advanced Commands
  2150.  
  2151.  
  2152.  
  2153.           5.4     ZAPPING TEXT
  2154.  
  2155.  
  2156.                   The Zap command provides a quick way to delete large
  2157.           sections of text from your file.
  2158.  
  2159.                   Before you can execute the Zap command, you must place
  2160.           pointers at the beginning and the end of the block of text that
  2161.           you want to delete.  After you have marked the block to be
  2162.           deleted, type Alt-Z to invoke the Zap command:
  2163.  
  2164.  
  2165.           +--------------------------------------------------------------+
  2166.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2167.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2168.           |====|========================| ZAP |========================|=|
  2169.           |    | Top Bottom Current 1 2  starting at                   | |
  2170.           |    |====================| H for Help |=====================| |
  2171.           |    else                                                      |
  2172.           |        if (c == TAB)                                         |
  2173.           |            return(Next_Tab(Col));                            |
  2174.           +--------------------------------------------------------------+
  2175.  
  2176.  
  2177.                   In this example, the number 1 and 2 pointers have been set
  2178.           as indicated by the "1" and the "2" in the prompt line. Now enter
  2179.           the number of the pointer that marks the beginning of the block to
  2180.           be deleted.  Note that you can also use the Top, Bottom, or
  2181.           Current location as an end point.  After you have entered the
  2182.           first pointer number (in this example, 1), the prompt will change
  2183.           to the following:
  2184.  
  2185.  
  2186.           +--------------------------------------------------------------+
  2187.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2188.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2189.           |====|========================| ZAP |========================|=|
  2190.           |    | Top Bottom Current 1 2  starting at 1,  ending at     | |
  2191.           |    |====================| H for Help |=====================| |
  2192.           |    else                                                      |
  2193.           |        if (c == TAB)                                         |
  2194.           |            return(Next_Tab(Col));                            |
  2195.           +--------------------------------------------------------------+
  2196.  
  2197.  
  2198.                   Now enter the number of the pointer that marks the end
  2199.           of the block to be deleted, and WED will delete the block of
  2200.           text from the file.
  2201.  
  2202.                   If you use the Zap command to delete a large block of
  2203.           text you may encounter the message, "text too large for delete
  2204.           buffer, ok to delete anyway?"  This means the the block of text
  2205.  
  2206.  
  2207.  
  2208.           Copyright (C) 1987-1989 Washington Computer Co.               28
  2209.  
  2210.  
  2211.           WED 4.10                  User's Guide         Advanced Commands
  2212.  
  2213.  
  2214.  
  2215.           you are about to delete is too large to fit in the delete buffer
  2216.           and thus you will not be able to later retrieve the text using
  2217.           the Undelete command.  Type "Y" to complete the Zap operation,
  2218.           or type "N" to cancel the command.
  2219.  
  2220.  
  2221.           5.5     UNDELETING TEXT
  2222.  
  2223.  
  2224.                   When you delete text with the Erase or Zap commands, WED
  2225.           automatically saves the deleted text in the delete buffer. 
  2226.           With the Undelete command you can retrieve the most recently
  2227.           deleted block of text.  To Undelete text, move the cursor to the 
  2228.           point at which you want the deleted text placed, and type Alt-U.
  2229.  
  2230.                   The delete buffer also be used for quick cut and paste
  2231.           operations.  Simply delete the source block, move the cursor to
  2232.           the new position, and then use the Undelete command to insert
  2233.           the deleted block at the new location.
  2234.  
  2235.  
  2236.           5.6     APPENDING TEXT FROM ANOTHER FILE
  2237.  
  2238.  
  2239.                   The Append command enables you to insert text from
  2240.           another file into the file you are currently editing.  To invoke
  2241.           the Append command, first move the cursor to the position at
  2242.           which you want the other file inserted, and then type Alt-A:
  2243.  
  2244.  
  2245.           +--------------------------------------------------------------+
  2246.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2247.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2248.           |====|====================| APPEND FILE |====================|=|
  2249.           |    |   Path: C:\C\SOURCE                                   | |
  2250.           |    |   File: ____________________________________________  | |
  2251.           |    |                                                       | |
  2252.           |    |   READ     ME  WED      C   WEDFILES C   WEDFILES OBJ | |
  2253.           |    |   WEDOTHER C   WEDOTHER OBJ WEDUTILY C                | |
  2254.           |    |==| Ctrl-PgDn for new dir; Ctrl-Home for current dir |=| |
  2255.           |            return(Next_Tab(Col));                            |
  2256.           +--------------------------------------------------------------+
  2257.  
  2258.  
  2259.                   Enter the name of the file you wish to insert.  Include
  2260.           the disk drive and path if desired.  If you don't, WED will
  2261.           default to the same disk and path of the main edit file.  WED
  2262.           will then insert that entire file at the current cursor location.
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.           Copyright (C) 1987-1989 Washington Computer Co.               29
  2271.  
  2272.  
  2273.           WED 4.10                  User's Guide         Advanced Commands
  2274.  
  2275.  
  2276.  
  2277.           5.7     WRITING TEXT TO ANOTHER FILE
  2278.  
  2279.  
  2280.                   The Write command writes a marked block of text from the
  2281.           current file to a new file on disk.  It is a useful command for
  2282.           creating stock paragraphs or for saving sections of a file that
  2283.           will later be inserted into other files.
  2284.  
  2285.                   Before you can execute the Write command, you must place
  2286.           pointers at the beginning and the end of the block of text that
  2287.           you want to write.  After you have marked the block to be
  2288.           written, type Alt-W to invoke the write command.  WED will
  2289.           prompt you as follows:
  2290.  
  2291.  
  2292.           +--------------------------------------------------------------+
  2293.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2294.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2295.           |====|=======================| WRITE |=======================|=|
  2296.           |    | Top Bottom Current 1 2  starting at                   | |
  2297.           |    |====================| H for Help |=====================| |
  2298.           |    else                                                      |
  2299.           |        if (c == TAB)                                         |
  2300.           |            return(Next_Tab(Col));                            |
  2301.           +--------------------------------------------------------------+
  2302.  
  2303.  
  2304.                   In this example, pointers number 1 and 2 have been set as
  2305.           indicated by the "1" and the "2" in the prompt line. Now enter
  2306.           the number of the pointers that mark the beginning and end of the
  2307.           block to be written.  Note that you can also use the Top of file,
  2308.           Bottom of file, or Current cursor location as an end points.
  2309.  
  2310.                   Now enter the number of the pointer that marks the end
  2311.           of the block to be written.  WED will now ask you for the file
  2312.           to write to:
  2313.  
  2314.           +--------------------------------------------------------------+
  2315.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2316.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2317.           |====|=======================| WRITE |=======================|=|
  2318.           |    | Top Bottom Current 1 2  starting at                   | |
  2319.           |    |===================| WRITE TO FILE |===================| |
  2320.           |    |   Path: C:\C\SOURCE                                   | |
  2321.           |    |   File: ____________________________________________  | |
  2322.           |    |                                                       | |
  2323.           |    |   READ     ME  WED      C   WEDFILES C   WEDFILES OBJ | |
  2324.           |    |   WEDOTHER C   WEDOTHER OBJ WEDUTILY C                | |
  2325.           |    |==| Ctrl-PgDn for new dir; Ctrl-Home for current dir |=| |
  2326.           |    else                                                      |
  2327.           |        if (c == TAB)                                         |
  2328.           |            return(Next_Tab(Col));                            |
  2329.           +--------------------------------------------------------------+
  2330.  
  2331.  
  2332.           Copyright (C) 1987-1989 Washington Computer Co.               30
  2333.  
  2334.  
  2335.           WED 4.10                  User's Guide         Advanced Commands
  2336.  
  2337.  
  2338.  
  2339.                   Enter the name of the file to which you wish to write
  2340.           the block of text and press the return key.  You can include a
  2341.           disk drive and path when entering the name.  If you don't, WED
  2342.           will default to the same disk and path as the main edit file.
  2343.           WED will now write the marked text out to the specified file.
  2344.           Note that if you specify the name of an existing file, that file
  2345.           will be replaced by the new file.
  2346.  
  2347.  
  2348.           5.8     EDITING OTHER FILES
  2349.  
  2350.  
  2351.                   Often, while editing, you will run across situations
  2352.           where it is desirable to be able to switch back and forth between
  2353.           several files with a minimum of time and effort.  With the Other
  2354.           files command, WED allows you to load up to ten seperate edit
  2355.           files at one time.  You can easily switch between those files,
  2356.           copy text between them, and even display two of them at the same
  2357.           time.
  2358.  
  2359.                   With this powerful feature, the task of working on large
  2360.           systems that span over multiple files is greatly simplified.  For
  2361.           example, you could display an external declaration in one window
  2362.           while editing the code that uses that declaration in the other
  2363.           window, or you could copy select sections of text of code from one
  2364.           file to another.
  2365.  
  2366.  
  2367.           5.8.1   Opening Other Files
  2368.  
  2369.  
  2370.                   To execute the Other file command, type Alt-O from the
  2371.           main edit menu.  WED will display the Other File menu:
  2372.  
  2373.  
  2374.           +--------------------------------------------------------------+
  2375.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2376.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2377.           |===========================| demo.c |=====|=| OTHER FILE |==|=|
  2378.           |    if (Disp_Able(c))                     | Open other file | |
  2379.           |        return(Col + 1);                  | Zoom (in/out)   | |
  2380.           |    else                                  | Resize window   | |
  2381.           |        if (c == TAB)                     | Help            | |
  2382.           |            if (c < ' ')                  |====| <Esc> |====| |
  2383.           +--------------------------------------------------------------+
  2384.  
  2385.  
  2386.                   Select "Open other file" and WED will prompt for the name
  2387.           of the Other file to edit.  If you enter the name of a file which
  2388.           does not exist, WED will create a new file.
  2389.  
  2390.                   Once the other file is loaded, you can edit it with all
  2391.  
  2392.  
  2393.  
  2394.           Copyright (C) 1987-1989 Washington Computer Co.               31
  2395.  
  2396.  
  2397.           WED 4.10                  User's Guide         Advanced Commands
  2398.  
  2399.  
  2400.  
  2401.           the features available for the primary file.  With the split
  2402.           screen feature described below, WED can split the display
  2403.           screen and display both edit files simultaneously.
  2404.  
  2405.                   You can repeat the Load Other File command, loading up to
  2406.           ten files at the same time.
  2407.  
  2408.  
  2409.           5.8.2   Switching Between Files
  2410.  
  2411.  
  2412.                   Switching between files loaded with the Other files
  2413.           command is easy.  Type Alt-O to envoke the Other files command
  2414.           and WED will list any other open files at the bottom of the
  2415.           menu:
  2416.  
  2417.  
  2418.           +--------------------------------------------------------------+
  2419.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2420.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2421.           |==========================| demo1.c |=====|=| OTHER FILE |==|=|
  2422.           |    if (Disp_Able(c))                     | Open other file | |
  2423.           |        return(Col + 1);                  | Zoom (in/out)   | |
  2424.           |    else                                  | Resize window   | |
  2425.           |        if (c == TAB)                     | Help            | |
  2426.           |            return(Next_Tab(Col));        |                 | |
  2427.           |        else                              | 0 C:\demo.c     | |
  2428.           |            if (c < ' ')                  |====| <Esc> |====| |
  2429.           +--------------------------------------------------------------+
  2430.  
  2431.  
  2432.  
  2433.                   Now just select the desired file from the list of open
  2434.           files.
  2435.  
  2436.  
  2437.           5.8.3   Quiting Other Files
  2438.  
  2439.  
  2440.                   Quiting a file when more than one file is loaded is the
  2441.           same as quitting with only one file loaded, only instead of
  2442.           returning to the main menu or exiting to DOS, WED will switch
  2443.           to the next most recently accessed open file.
  2444.  
  2445.  
  2446.           5.8.4   The Zoom Command
  2447.  
  2448.  
  2449.                   As mentioned above, WED has the ability to display two
  2450.           files at the same time.  This is called split screen editing and
  2451.           is accomplished by splitting the screen with a horzontal line and
  2452.           displaying one file in the top window and the other in the lower
  2453.  
  2454.  
  2455.  
  2456.           Copyright (C) 1987-1989 Washington Computer Co.               32
  2457.  
  2458.  
  2459.           WED 4.10                  User's Guide         Advanced Commands
  2460.  
  2461.  
  2462.  
  2463.           window.  You can switch back and forth between full screen editing
  2464.           and split screen editing with the "Zoom (in/out)" option of the
  2465.           Other files command.  You can set the default mode (split or full
  2466.           screen) with the Setup command.
  2467.  
  2468.  
  2469.           5.8.5   Resizing Windows
  2470.  
  2471.  
  2472.                   When you use the split screen mode, WED splits the screen
  2473.           in the middle by default.  You can change this with the "Resize
  2474.           window" option of the Other files command.  Select the option,
  2475.           then use the <up> and <down> cursor keys to move the split bar to
  2476.           the desired row, and then press the <Esc> key to complete the
  2477.           operation.  The can set the default size for split screens with
  2478.           the Setup command.
  2479.  
  2480.  
  2481.           5.9     COPYING TEXT BETWEEN FILES
  2482.  
  2483.  
  2484.                   The Bridge command is similar to the Copy command, only
  2485.           it copies text from another file, thus providing a bridge
  2486.           between the two files.  To use Bridge, you must first load both
  2487.           files using the Other file command.  The next step is to place
  2488.           pointers at the beginning and the end of the block of text that
  2489.           you want to copy.  After you have marked the block to be copied,
  2490.           switch to the destination file by typing Alt-O.  Now move the
  2491.           cursor to the place in the destination file that you want the
  2492.           block copied to.  Type Alt-B and WED will prompt for the source
  2493.           file (the file containing the text to be copied):
  2494.  
  2495.  
  2496.           +--------------------------------------------------------------+
  2497.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2498.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2499.           |==========================| demo1.c |=====|=| OTHER FILE |==|=|
  2500.           |    if (Disp_Able(c))                     | From what file? | |
  2501.           |        return(Col + 1);                  |                 | |
  2502.           |    else                                  | 1 C:\C\wed.c    | |
  2503.           |            if (c < ' ')                  |====| <Esc> |====| |
  2504.           +--------------------------------------------------------------+
  2505.  
  2506.  
  2507.                   Next, WED will prompt for the beginning and ending
  2508.           points of the block of text.  Specify the pointers in the same
  2509.           manner as with the Copy command.  Remember that the pointers
  2510.           you are referring to are the pointers set in the source file. 
  2511.           WED will then copy the text from the other file into the
  2512.           current file at the current cursor location.
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.           Copyright (C) 1987-1989 Washington Computer Co.               33
  2519.  
  2520.  
  2521.           WED 4.10                  User's Guide         Advanced Commands
  2522.  
  2523.  
  2524.  
  2525.           5.10    THE DOS COMMAND
  2526.  
  2527.  
  2528.                   WED provides a gateway to DOS which allows you to
  2529.           execute DOS commands or other programs without ending the WED
  2530.           edit session.  To use this feature, type Alt-D from the main
  2531.           menu.  The screen will clear and the DOS prompt will be
  2532.           displayed.  You can now enter commands just as you would at the
  2533.           normal DOS prompt.  When you wish to return to the editor, enter
  2534.           "EXIT", and WED will resume the interupted edit session.
  2535.  
  2536.                   When you use the DOS gateway command,  WED remains in
  2537.           memory along with the file(s) you are editing.  This means that
  2538.           there will be less memory available to any programs you run
  2539.           while under this command.
  2540.  
  2541.                   If you change drives or subdirectories while in the DOS
  2542.           gateway, you must change back before you return to WED with the
  2543.           "EXIT" command.
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.           Copyright (C) 1987-1989 Washington Computer Co.               34
  2581.  
  2582.  
  2583.           WED 4.10                  User's Guide                 Word Wrap
  2584.  
  2585.  
  2586.  
  2587.           6       EDITING WITH WORD-WRAP
  2588.  
  2589.  
  2590.                   The word-wrap option in WED is designed to support
  2591.           documentation tasks.  When the word-wrap option is turned on, you
  2592.           can enter text into your document without worrying about where the
  2593.           right margin is.  When you type past the right margin, WED will
  2594.           automatically break the current line at the last word break and
  2595.           then move the current word to the next line.  If you make changes
  2596.           to the text, you can reallign the margins with the format command.
  2597.  
  2598.  
  2599.           6.1     WORD-WRAP MODE
  2600.  
  2601.  
  2602.                   To use the word-wrap mode, you must first set the
  2603.           word-wrap setup field to "on," and select the desired right margin
  2604.           setting.  To do this, use the Setup command described in chapter
  2605.           ten.
  2606.  
  2607.                   Once you have selected the word-wrap mode, you can begin
  2608.           entering text with either the insert or overwrite mode.  When you
  2609.           type past the right margin that you selected with the Setup
  2610.           command, WED will scan back to the beginning of the current word
  2611.           and insert a carrage return.  The current word will be moved to
  2612.           the next line where you can continue typing.  Thus, with the
  2613.           word-wrap mode, you need only worry about the right margin
  2614.           once.  Then you can type text continuously, letting WED place
  2615.           line breaks where needed.
  2616.  
  2617.                   Sometimes you may need to sections of text where entire
  2618.           paragraphs are indented past the left margin.  You can do this
  2619.           with word-wrap by first setting auto-indent to "yes" with the
  2620.           Setup command.  When you do this, WED will automattically
  2621.           indent the new lines created by word-wrap to the same column as
  2622.           the line above.
  2623.  
  2624.  
  2625.           6.2     RE-FLOWING A PARAGRAPH WITH FORMAT
  2626.  
  2627.  
  2628.                   The word-wrap mode works fine when you are entering new
  2629.           text, but it does not automattically re-format text when you
  2630.           move or delete text inside a paragraph.  To re-flow text within
  2631.           the margins, you need to use the Format command.  First, place
  2632.           pointers at the beginning and end of the paragraph(s) you want
  2633.           to re-flow, then type Alt-F:
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.           Copyright (C) 1987-1989 Washington Computer Co.               35
  2643.  
  2644.  
  2645.           WED 4.10                  User's Guide      Programmers Features
  2646.  
  2647.  
  2648.  
  2649.           +--------------------------------------------------------------+
  2650.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2651.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2652.           |==========================| demo1.c |==========|=| FORMAT |=|=|
  2653.           |    if (Disp_Able(c))                          | Indent     | |
  2654.           |        return(Col + 1);                       | Undent     | |
  2655.           |    else                                       | Paragraph  | |
  2656.           |        if (c == TAB)                          | Help       | |
  2657.           |            if (c < ' ')                       |=| <Esc> |==| |
  2658.           +--------------------------------------------------------------+
  2659.  
  2660.  
  2661.                   Now select the "Paragraph" option and WED will prompt
  2662.           for the left and right margins:
  2663.  
  2664.  
  2665.           +--------------------------------------------------------------+
  2666.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2667.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2668.           |==========================| demo1.c |==========|=| FORMAT |=|=|
  2669.           |    if (Disp_Able(c))                          | Indent     | |
  2670.           |        return(Col + 1);        |====| PARAGRAPH |====|     | |
  2671.           |    else                        | Left margin : 1     |aph  | |
  2672.           |        if (c == TAB)           | Right margin:       |     | |
  2673.           |            if (c < ' ')        |=====================|> |==| |
  2674.           +--------------------------------------------------------------+
  2675.  
  2676.  
  2677.                   Notice that WED will provide default values; the left
  2678.           margin will default to one, and the right margin will default
  2679.           to the value you select with the Setup command.  Enter the
  2680.           margin values, and then WED will prompt for the beginning and
  2681.           end of the paragraph to re-format.  Enter the numbers of the
  2682.           pointers you placed before invoking the Format command, and WED
  2683.           will re-flow the text between the pointers using the same rules
  2684.           it uses when entering text with word-wrap.
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.           Copyright (C) 1987-1989 Washington Computer Co.               36
  2705.  
  2706.  
  2707.           WED 4.10                  User's Guide      Programmers Features
  2708.  
  2709.  
  2710.  
  2711.           7       SPECIAL FEATURES FOR PROGRAMMERS
  2712.  
  2713.  
  2714.           7.1     AUTO-INDENT MODE
  2715.  
  2716.  
  2717.                   The auto indent mode saves you key strokes when editing
  2718.           programs which use indentation.  This feature only operates when
  2719.           the editor is in the Insert mode.
  2720.  
  2721.                   If auto indent is turned on and you are entering text in
  2722.           Insert mode, then after each carriage return, WED will indent the
  2723.           next line to the same level as the current line.  It does this by
  2724.           automatically entering spaces or tabs at the beginning of the
  2725.           line.  If you want to change the indentation level of the new
  2726.           line, you can use either the backspace or space keys to reduce or
  2727.           increase the indentation level of the line.
  2728.  
  2729.                   Auto indent checks the Tab Conversion flag to determine
  2730.           if it should insert spaces or tabs.  If the flag is set to
  2731.           "spaces," then auto indent will use only spaces.  If, on the
  2732.           other hand, it is set to "tabs," then auto indent will use tabs
  2733.           whenever possible.  You can change the setting of the Tab
  2734.           Conversion flag with the Setup command.
  2735.  
  2736.  
  2737.           7.2     RE-INDENTING WITH FORMAT
  2738.  
  2739.  
  2740.                   The Format command allows you to move blocks of text to
  2741.           the left or right.  It is useful for programmers working in
  2742.           structured languages such as C and PASCAL.  With this command,
  2743.           you can change the indentation of entire blocks of code with one
  2744.           command.
  2745.  
  2746.                   Before you can execute the format command, you must place
  2747.           pointers at the beginning and the end of the block of text that
  2748.           you want to re-format.  After you have marked the block, type
  2749.           Alt-F to invoke the Format command.  WED will prompt you as
  2750.           follows:
  2751.  
  2752.  
  2753.           +--------------------------------------------------------------+
  2754.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2755.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2756.           |==========================| demo1.c |==========|=| FORMAT |=|=|
  2757.           |    if (Disp_Able(c))                          | Indent     | |
  2758.           |        return(Col + 1);                       | Undent     | |
  2759.           |    else                                       | Paragraph  | |
  2760.           |        if (c == TAB)                          | Help       | |
  2761.           |            if (c < ' ')                       |=| <Esc> |==| |
  2762.           +--------------------------------------------------------------+
  2763.  
  2764.  
  2765.  
  2766.           Copyright (C) 1987-1989 Washington Computer Co.               37
  2767.  
  2768.  
  2769.           WED 4.10                  User's Guide      Programmers Features
  2770.  
  2771.  
  2772.  
  2773.                   If you want to move the text block to the right, select
  2774.           Indent.  Otherwise, select Undent un-indent the block (move it to
  2775.           the left).  Next enter the number of spaces to move the text.
  2776.           Then WED will prompt for the end points of the block to
  2777.           re-indent:
  2778.  
  2779.  
  2780.           +--------------------------------------------------------------+
  2781.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2782.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2783.           |==========================| demo1.c |==========|=| FORMAT |=|=|
  2784.           |    if (Disp_Able(c))                          | Indent     | |
  2785.           |        return(Col + 1);         |=====| INDENT |======|    | |
  2786.           |    else                         | How many spaces? 4  |ph  | |
  2787.           ||======================| INDENT |=====================||    | |
  2788.           || Top Bottom Current 1 2  Starting at                 |> |==| |
  2789.           ||====================| H for Help |===================|       |
  2790.           +--------------------------------------------------------------+
  2791.  
  2792.  
  2793.                   Now enter the pointers marking the beginning and the end
  2794.           of the block to re-indent.  Notice that you can use the Top or
  2795.           Bottom of the file, or the Current cursor location as an end
  2796.           point.  WED will now re-indent the block.
  2797.  
  2798.                   The Indent function is aware of the Tab Conversion flag.
  2799.           If the flag is set to "spaces," then Indent will use only
  2800.           spaces.  Otherwise, Indent will indent the lines with tabs
  2801.           whenever possible.  You can alter the Tab Conversion setting with
  2802.           the Setup command.
  2803.  
  2804.  
  2805.           7.3     THE EXECUTE USER PROGRAM COMMAND
  2806.  
  2807.  
  2808.                   The eXecute user program command is an advanced command
  2809.           designed to facilitate program development.  With a single command
  2810.           you can save the current edit file, compile that file, and then
  2811.           resume editing.  This greatly reduces the effort and time required
  2812.           to switch back and forth between the editor and your compiler or
  2813.           assembler.
  2814.           Before you can use this command, you must use the Setup command
  2815.           to tell WED what compiler(s) and assembler(s) you will be using.
  2816.           This process is described in chapter 10 of this manual.
  2817.  
  2818.                   To execute the user program command, type Alt-X while at
  2819.           the main edit prompt and WED will display a sub menu of the
  2820.           programs that you have installed.  For example, if you have
  2821.           installed a C compiler and an assembler, the prompt might look
  2822.           like this:
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.           Copyright (C) 1987-1989 Washington Computer Co.               38
  2829.  
  2830.  
  2831.           WED 4.10                  User's Guide      Programmers Features
  2832.  
  2833.  
  2834.  
  2835.           +--------------------------------------------------------------+
  2836.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2837.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2838.           |==========================| demo1.c |====|=| EXECUTE USER |=|=|
  2839.           |    if (Disp_Able(c))                    | C 5.1            | |
  2840.           |        return(Col + 1);                 | Masm 5.0         | |
  2841.           |    else                                 |====| <Esc> |=====| |
  2842.           |        if (c == TAB)                                         |
  2843.           |            if (c < ' ')                                      |
  2844.           +--------------------------------------------------------------+
  2845.  
  2846.  
  2847.                   Now select the program you want to execute and WED will
  2848.           save the current edit file and setup a command line on the
  2849.           screen.  Notice that WED displays the amount of memory
  2850.           available for the program to run in.
  2851.  
  2852.  
  2853.           +--------------------------------------------------------------+
  2854.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2855.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2856.           |==========================| demo1.c |=========================|
  2857.           |Memory available: 381K                                        |
  2858.           |                                                              |
  2859.           |CL C:\C\WED\WED.C                                             |
  2860.           |                                                              |
  2861.           +--------------------------------------------------------------+
  2862.  
  2863.  
  2864.                   You can edit the command line to add any command line
  2865.           parameters as needed.  When you are ready, just press the <Enter>
  2866.           key to run the program.
  2867.  
  2868.                   When the user program completes execution, WED will
  2869.           present you with another menu:
  2870.  
  2871.  
  2872.           +--------------------------------------------------------------+
  2873.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  2874.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  2875.           |==========================| demo1.c |====|=| EXECUTE USER |=|=|
  2876.           |Memory available: 382K                   | Continue editing | |
  2877.           |                                         | Main menu        | |
  2878.           |CL /Zi /Od /AL C:\C\WED\WED.C            | Exit WED         | |
  2879.           |                                         | Help             | |
  2880.           |Microsoft (R) C Optimizing Compiler Versi|====| <Esc> |=====| |
  2881.           |Copyright (c) Microsoft Corp 1984, 1985, 1986, 1987, 1988     |
  2882.           +--------------------------------------------------------------+
  2883.  
  2884.  
  2885.                   Select "Continue editing" to return to the current edit
  2886.           file.  This option is useful when you want to fix syntax errors
  2887.  
  2888.  
  2889.  
  2890.           Copyright (C) 1987-1989 Washington Computer Co.               39
  2891.  
  2892.  
  2893.           WED 4.10                  User's Guide      Programmers Features
  2894.  
  2895.  
  2896.  
  2897.           reported by the compiler.
  2898.  
  2899.                   Select "Main menu" to exit the current edit file and
  2900.           return to the WED main menu (remember, the current edit file
  2901.           was automatically saves just prior to executing the user
  2902.           program).  If more than one file is loaded, WED will switch to
  2903.           the most recent file instead of the main menu.
  2904.  
  2905.                   Select "Exit WED" to exit the current edit file and return
  2906.           to the DOS "C" prompt.  As with the "Main menu" option, WED will
  2907.           swith to one of the other file if more than one edit file is
  2908.           loaded.
  2909.  
  2910.  
  2911.           7.4     THE POPUP ASCII TABLE
  2912.  
  2913.  
  2914.                   As a convenience to programmers, WED includes a pop-up
  2915.           ASCII reference table.  To pop-up the table, type alt-Y while
  2916.           in the main edit mode.  Now use the <Up> and <Dn> arrow keys to
  2917.           page through all 256 ASCII character values.  When you are done
  2918.           with the table, press the <Esc> key to return to editing.
  2919.  
  2920.                   This can be useful when you are using the graphics command
  2921.           to enter special characters.  When you want to find out which key
  2922.           to press to enter a desired high-bit character, look up the
  2923.           character in the table, and the required keystroke will be
  2924.           displayed to its left.
  2925.  
  2926.  
  2927.  
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.           Copyright (C) 1987-1989 Washington Computer Co.               40
  2953.  
  2954.  
  2955.           WED 4.10                  User's Guide        Special Characters
  2956.  
  2957.  
  2958.  
  2959.  
  2960.           8       EDITING SPECIAL CHARACTERS
  2961.  
  2962.  
  2963.           8.1     EDITING FILES WITH CONTROL CHARACTERS
  2964.  
  2965.  
  2966.                   The WED editor has the ability to edit special characters
  2967.           called control characters.  These are the characters can only be
  2968.           entered from the drop down insert mode.  To enter a control
  2969.           character, hold down the <Ctrl> key and type the letter or
  2970.           symbol. For example, to enter control-L, hold down the <Ctrl> key
  2971.           and type L.  Control characters are displayed as a carat, ^,
  2972.           followed by the alphabetical character.  For example, Ctrl-G will
  2973.           be displayed as ^G.  There is one exception to this rule. The
  2974.           carriage return character (^M) displays as the special end of line
  2975.           character.
  2976.  
  2977.  
  2978.           8.2     USING TEXT OR GRAPHICS CHARACTERS
  2979.  
  2980.  
  2981.                   One of the nice features of the IBM PC and compatible
  2982.           computers is their ability to display special graphics
  2983.           characters while in the standard text mode.  These are the
  2984.           high-bit set characters with ascii values from 128 to 255. The
  2985.           most commonly used of these characters are the line drawing
  2986.           characters used for drawing boxes and tables.  The outline boxes
  2987.           displayed on the opening screen of WED are drawn using them.
  2988.  
  2989.                   WED has a special graphics mode which enables you to
  2990.           enter and edit all of these characters.  To switch to the
  2991.           graphics mode, type Alt-T.  Notice that the mode displayed at
  2992.           the upper right corner of the text window changes from Text to
  2993.           Graphics.  Once WED is in the graphics mode, it will translate
  2994.           any input characters to graphics characters by setting the high
  2995.           order bit to 1.  Appendix C contains a table listing all of the
  2996.           possible input characters and graphics characters that they will
  2997.           be translated to.  For example, to enter the double horizontal
  2998.           line character used at the top of the text window in WED, switch
  2999.           to graphics mode, and then type M.
  3000.  
  3001.                   When you want to switch back to the text mode, just type
  3002.           Alt-T.  You can use the Text command (Alt-T) to toggle between
  3003.           the text and graphics modes any time you are in the main edit
  3004.           mode or in the insert mode.
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.           Copyright (C) 1987-1989 Washington Computer Co.               41
  3015.  
  3016.  
  3017.           WED 4.10                  User's Guide                  Printing
  3018.  
  3019.  
  3020.  
  3021.           9       PRINTING FILES
  3022.  
  3023.  
  3024.                   The WED editor includes a file printing utility which
  3025.           is useful for printing source code files as well as text files.
  3026.           Features include margin control, line numbering, and header
  3027.           lines with the file name, time and date, page number, and a
  3028.           user entered title.
  3029.  
  3030.                   To print a file, select option two from the main menu and
  3031.           then  select a file to print.  WED will then display the print
  3032.           menu:
  3033.  
  3034.  
  3035.                   |=============| Print Parameters |=============|
  3036.                   | print header      yes                        |
  3037.                   | print line nos    yes                        |
  3038.                   | title                                        |
  3039.                   |                                              |
  3040.                   | page height       66                         |
  3041.                   | page width        132                        |
  3042.                   | top margin        3                          |
  3043.                   | bottom margin     3                          |
  3044.                   | left margin       5                          |
  3045.                   | right margin      5                          |
  3046.                   |                                              |
  3047.                   | setup string      \x0F                       |
  3048.                   | reset string      \x12                       |
  3049.                   |=============| <PgDn> to print> |=============|
  3050.  
  3051.  
  3052.                   Use the <Up> and <Down> cursor keys to move between
  3053.           fields.  Enter or change the values in any of the fields a
  3054.           desired, and then press the <PgDn> key to begin printing.  The
  3055.           following paragraphs describe the individual printing
  3056.           parameters.  For a better understanding of the margins, refer
  3057.           to the page layout diagram at the end of this chapter.
  3058.  
  3059.                   The first field indicates if WED should print header lines
  3060.           at the top of each page.  These header lines include the file
  3061.           name, a user entered title, the page number, and the current time
  3062.           and date.  This option is very useful when generating source code
  3063.           listings.  Press the <space> bar to toggle between "yes" and "no."
  3064.  
  3065.                   The next field indicates if WED should print line numbers
  3066.           at the start of each file line.  This option is also useful when
  3067.           generating source code listings.
  3068.  
  3069.                   The title field enables you to enter a title that will
  3070.           appear in the middle of the top header line on each page.  This
  3071.           field has no affect if you select no at the "print header"
  3072.           field.
  3073.  
  3074.  
  3075.  
  3076.           Copyright (C) 1987-1989 Washington Computer Co.               42
  3077.  
  3078.  
  3079.           WED 4.10                  User's Guide                  Printing
  3080.  
  3081.  
  3082.  
  3083.                   The page height and page width settings tell WED how
  3084.           many rows and columns the printer can print on each page.
  3085.  
  3086.                   The top and bottom margin settings specify how many
  3087.           lines to skip over at the top and bottom of each page.
  3088.  
  3089.                   The left and right margin values determine number of
  3090.           blank columns to leave in the left and right margins on each
  3091.           page.
  3092.  
  3093.  
  3094.                    +-------------------- page width --------------------+
  3095.  
  3096.                +   +----------------------------------------------------+
  3097.                :   |                        top                         |
  3098.                :   |                      margin                        |
  3099.                :   |        +-----------------------------------+       |
  3100.                :   |        |                                   |       |
  3101.                :   |        |                                   |       |
  3102.                :   |        |                                   |       |
  3103.                :   |        |                                   |       |
  3104.                :   |        |                                   |       |
  3105.                :   |        |                                   |       |
  3106.              page  |  left  |                                   | right |
  3107.             height |  marg  |              T E X T              | marg  |
  3108.                :   |        |                                   |       |
  3109.                :   |        |                                   |       |
  3110.                :   |        |                                   |       |
  3111.                :   |        |                                   |       |
  3112.                :   |        |                                   |       |
  3113.                :   |        |                                   |       |
  3114.                :   |        |                                   |       |
  3115.                :   |        |                                   |       |
  3116.                :   |        +-----------------------------------+       |
  3117.                :   |                      bottom                        |
  3118.                :   |                      margin                        |
  3119.                +   +----------------------------------------------------+
  3120.  
  3121.  
  3122.                   The printer setup string is a string of characters that
  3123.           will be sent to the printer before printing a file.  This
  3124.           string can contain any eight-bit values needed to place the
  3125.           printer in the proper mode(s) for printing the file.  One use
  3126.           of this string might be to place the printer in a condensed
  3127.           mode for printing source code listings.
  3128.  
  3129.                   Setup strings are made up of a series of characters and
  3130.           ASCII codes.  ASCII codes are represented with standard C
  3131.           notation, "\ddd" where the back slash signals an ASCII code,
  3132.           and is followed by the actual code in decimal base.  For
  3133.           example, the <Esc> character (ASCII 27) would be represented as
  3134.           "\27."  As in C, you can specify a hex or binary base by
  3135.  
  3136.  
  3137.  
  3138.           Copyright (C) 1987-1989 Washington Computer Co.               43
  3139.  
  3140.  
  3141.           WED 4.10                  User's Guide                  Printing
  3142.  
  3143.  
  3144.  
  3145.           prefixing the value with an "x" or a "b."  For example, <Esc>
  3146.           would be entered as "\x1A" in hex.
  3147.  
  3148.                   The printer reset string is similar to the setup
  3149.           string, only it is sent to the printer after the file has been
  3150.           printed.  The purpose of this string is to reset the printer to
  3151.           its normal mode.  For example, the string may contain the codes
  3152.           to return the printer to normal density printing after printing
  3153.           the file with condensed print:  "\x12"
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199.  
  3200.           Copyright (C) 1987-1989 Washington Computer Co.               44
  3201.  
  3202.  
  3203.           WED 4.10                  User's Guide                     Setup
  3204.  
  3205.  
  3206.  
  3207.           10      THE SETUP COMMAND
  3208.  
  3209.  
  3210.                   The setup command enables you to change various parameters
  3211.           that affect the way WED operates during an edit session.  You can
  3212.           use this command to make temporary changes for the current edit
  3213.           session, or you can save the changes so that they will remain in
  3214.           effect for future sessions.
  3215.  
  3216.                   There are two ways to access the Setup command.  If you
  3217.           are at the main menu, select option four, or if you are editing a
  3218.           file, type Alt-S:
  3219.  
  3220.  
  3221.           +--------------------------------------------------------------+
  3222.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  3223.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  3224.           |============|===================| SETUP |===================|=|
  3225.           |    if (Disp|   help                   Format               | |
  3226.           |            | Miscellaneous              right margin     65| |
  3227.           |        retu|   cursor type     block    auto indent      on| |
  3228.           |    else    |   eoln symbol              tab conversion   sp| |
  3229.           |        if (|   locate key      clear    word wrap        of| |
  3230.           |            |   user programs          Printing             | |
  3231.           |        else|   keyboard macros          print header     ye| |
  3232.           |            |   split screen             print line nos   ye| |
  3233.           |            | Files                      page height      66| |
  3234.           |            |   make bak files  yes      page width       80| |
  3235.           |            |   file name       keep     top margin        3| |
  3236.           |            |   show directory  yes      bottom margin     3| |
  3237.           |            |   swap path                left margin      10| |
  3238.           |            | Video                      right margin     10| |
  3239.           |            |   monitor type    mono     setup string       | |
  3240.           |            |=============| <Esc> to exit Setup |===========| |
  3241.           +--------------------------------------------------------------+
  3242.  
  3243.  
  3244.                   To change a value, first use the cursor keys to move the
  3245.           cursor bar to the desired field.  If the field description is
  3246.           followed by a status word, just press the <space> bar to toggle
  3247.           between the available choices.  If the field description is
  3248.           followed by a numerical value, press the <space> bar and then
  3249.           enter the new value.  If there is no status or value following
  3250.           the field, then press the <space> bar and WED will open a new
  3251.           window to prompt for additional information.
  3252.  
  3253.                   Once in the Setup menu, you can make as many changes as
  3254.           you need.  When you are done, press the <Esc> key to exit the
  3255.           Setup command.  If you want to preserve the changes you have made
  3256.           for future edit sessions, select the last setup field, "save
  3257.           setup values."
  3258.  
  3259.  
  3260.  
  3261.  
  3262.           Copyright (C) 1987-1989 Washington Computer Co.               45
  3263.  
  3264.  
  3265.           WED 4.10                  User's Guide                     Setup
  3266.  
  3267.  
  3268.  
  3269.                   If you need help while using the setup command, you can
  3270.           select the first setup field, "help" and WED will display
  3271.           general information about the setup command.  If you want
  3272.           detailed information on one of the setup fields, move the
  3273.           cursor bar to that field and type Alt-H.
  3274.  
  3275.                   The rest of this chapter is devoted to providing detailed
  3276.           descriptions for each of the setup fields.
  3277.  
  3278.  
  3279.           10.1    Cursor Type
  3280.  
  3281.  
  3282.                   You can choose between two cursor shapes for WED to use
  3283.           during editing, a standard underline cursor, or an easier to see
  3284.           block cursor.  The current cursor choice is shown next to the
  3285.           "Cursor" prompt.
  3286.  
  3287.  
  3288.           10.2    End-Of-Line Symbol
  3289.  
  3290.  
  3291.                   WED uses a special character to indicate the location of
  3292.           carriage returns in your file.  The default value for this
  3293.           character is ASCII 174, which looks like a pair of left facing
  3294.           arrows.  To change this value, select Setup field two, and WED
  3295.           will prompt for a new ASCII value.  Enter a value from 32 to
  3296.           255.
  3297.  
  3298.  
  3299.           10.3    Locate Key Keep
  3300.  
  3301.  
  3302.                   The Locate Key flag is similar to the File Name flag. When
  3303.           it is set to "keep", WED remembers the most recent Locate phrase. 
  3304.           Each time you execute the Locate or Replace command, the last
  3305.           search phrase will be displayed.  You can then edi that phrase or
  3306.           enter a new one.  The editing keys available while entering file
  3307.           names are the left and right cursor keys, the home and end keys,
  3308.           the plus and minus keys, and the backspace key.  In addition, the
  3309.           <Ins> key toggles between overright and insert modes, and
  3310.           Ctrl-<End> erase from the cursor to the end of the entry.
  3311.  
  3312.                   If the Locate Key flag is set to "clear", then you will
  3313.           have to enter the complete search phrase every time you use the
  3314.           Locate and Replace commands.
  3315.  
  3316.  
  3317.           10.4    User Programs
  3318.  
  3319.  
  3320.                   With the eXecute command, WED provides the ability to run
  3321.  
  3322.  
  3323.  
  3324.           Copyright (C) 1987-1989 Washington Computer Co.               46
  3325.  
  3326.  
  3327.           WED 4.10                  User's Guide                     Setup
  3328.  
  3329.  
  3330.  
  3331.           compilers or other programs from within the editor.  Before you
  3332.           can execute a program with this command you must install with
  3333.           WEDINST.  Chapter seven of this manual describes the use of this
  3334.           command once you have installed your program(s).
  3335.  
  3336.                   Select the user programs setup field to enter or change
  3337.           your programs:
  3338.  
  3339.  
  3340.           +--------------------------------------------------------------+
  3341.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  3342.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  3343.           |============|===================| SETUP |===================|=|
  3344.           |    if (Disp| Miscellaneous             Video               | |
  3345.           |        retu|  1 cursor type     block   11 monitor type  co| |
  3346.           |    else    |  2 eoln symbol             12 colors          | |
  3347.           |        if (|  3 locate key      clear   13 ega 43 line   no| |
  3348.           |            |  4 user programs           14 snow removal  no| |
  3349.           |        else|  5 keyboard macros        Format              | |
  3350.           |            |  6 split screen            15 line format     | |
  3351.           |            | Files                      16 auto indent   on| |
  3352.           ||=====================| USER PROGRAMS |=====================| |
  3353.           || Prompt     Path/Name                                      | |
  3354.           || MS C 5.1   C:\MSC\BIN\CL.EXE                              | |
  3355.           ||                                                           | |
  3356.           ||                                                           | |
  3357.           ||                                                           | |
  3358.           ||===========================================================| |
  3359.           +--------------------------------------------------------------+
  3360.  
  3361.  
  3362.                   Use the <up> and <down> cursor keys to select one of the
  3363.           six program slots.  To add a new program move to the first blank
  3364.           line and enter the new program.  Start by entering a prompt for
  3365.           this program.  This is the selection text that will be displayed
  3366.           in the pull down menu.  Next enter the path and file name of the
  3367.           actual program.  Finally, WED will prompt for the minimum memory
  3368.           required to run the program.  WED will use this number to
  3369.           determine if it should swap the current edit file(s) out to make
  3370.           room for the program.
  3371.  
  3372.                   You can change any of the user program entries by moving
  3373.           to the desired line and editing the entries.
  3374.  
  3375.  
  3376.           10.5    Keyboard Macros
  3377.  
  3378.  
  3379.                   The macro facility provided with WED is designed to save
  3380.           you keystrokes and to allow you to customize the editor to suit
  3381.           your needs.  A macro is a set of up to twenty commands
  3382.           (keystrokes) that can be assigned to a particular function key
  3383.  
  3384.  
  3385.  
  3386.           Copyright (C) 1987-1989 Washington Computer Co.               47
  3387.  
  3388.  
  3389.           WED 4.10                  User's Guide                     Setup
  3390.  
  3391.  
  3392.  
  3393.           combination.  When that key is pressed, the commands in the macro
  3394.           will be executed just as if they had been entered from the
  3395.           keyboard. You can define up to forty macros using the four
  3396.           variations of the ten function keys, <F1>, <Shift><F1>,
  3397.           <Ctrl><F1>, and <Alt><F1>.
  3398.  
  3399.                   Select the keyboard macros setup field to enter or change
  3400.           keyboard macros:
  3401.  
  3402.  
  3403.           +--------------------------------------------------------------+
  3404.           |WED: Help Insert Erase Pointer Goto Copy Move Zap Locate Repla|
  3405.           |Line:  45 Col  11  Overwrite              Size 12K  Free 212K |
  3406.           |============|===================| SETUP |===================|=|
  3407.           |    if (Disp| Miscellaneous             Video               | |
  3408.           |        retu|    cursor type     block      monitor type  co| |
  3409.           |    else    |    eoln symbol                colors          | |
  3410.           |        if (|    locate key      clear      ega 43 line   no| |
  3411.           |            |    user programs              snow removal  no| |
  3412.           |        else|    keyboard macros        Format              | |
  3413.           ||====================| KEYBOARD MACROS |====================| |
  3414.           || Enter macro to edit:                                      | |
  3415.           ||                                                           | |
  3416.           ||                                                           | |
  3417.           ||===========================================================| |
  3418.           |            | command:                      help on setup   | |
  3419.           |            |=============| <Esc> to exit Setup |===========| |
  3420.           +--------------------------------------------------------------+
  3421.  
  3422.  
  3423.                   Now select a macro by pressing one of the forty
  3424.           function key combinations.  For example, to redefine the
  3425.           <Ctrl><F8> macro, hold down the <Ctrl> key and press the <F8>
  3426.           key.
  3427.  
  3428.                   WED will display the current contents of the macro on the
  3429.           next line and then provide space for you to enter the new
  3430.           contents of the macro on the following line.  Now just enter the
  3431.           macro keystrokes as if you were typing them directly into WED
  3432.           during an edit session.  You can use the <Backspace> key to make
  3433.           corrections.  When the macro is complete, press the function key
  3434.           combination to accept the entry.  If you enter an empty macro,
  3435.           WED will retain the original contents of the macro.
  3436.  
  3437.  
  3438.           10.6    Split Screen
  3439.  
  3440.  
  3441.                   The Split screen flag controls manner in which WED
  3442.           displays the edit files when you are using the Other file
  3443.           command.  When Split screen is set, the Other file command "splits"
  3444.           the screen by drawing a horizontal line across the middle.  It
  3445.  
  3446.  
  3447.  
  3448.           Copyright (C) 1987-1989 Washington Computer Co.               48
  3449.  
  3450.  
  3451.           WED 4.10                  User's Guide                     Setup
  3452.  
  3453.  
  3454.  
  3455.           then displays two of the edit files at the same time, with one on
  3456.           the top half and the other file on the lower half of the screen.
  3457.  
  3458.                   Select "zoom" if you want to use the full screen to edit
  3459.           each file, or "split" if you want to use the split screen feature.
  3460.  
  3461.  
  3462.           10.7    Insert Type
  3463.  
  3464.  
  3465.                   WED supports two types of insert modes which are
  3466.           described in section 4.2.  You can select the keyboard
  3467.           assignments for these two modes using the Insert Type switch
  3468.           from Setup.  If you set Insert Type to "push," then the push
  3469.           setup mode will be assigned to the <Ins> key and the drop-down
  3470.           insert mode will be assigned to Alt-I.  If you set Insert Type
  3471.           to "drop down," then these key assignments will be reversed.
  3472.  
  3473.  
  3474.           10.8    <del> Key
  3475.  
  3476.  
  3477.                   With the <del> key Setup switch, you can select to have
  3478.           the <del> key either operate the Erase mode or delete char
  3479.           commands.
  3480.  
  3481.  
  3482.           10.9    Make BAK Files
  3483.  
  3484.  
  3485.                   When WED saves a file, it normally makes a backup of the
  3486.           old version before saving the newly edited version of the file. 
  3487.           It accomplishes this by first renaming the old file with an
  3488.           extension of ".BAK" and then saving the new file.  For example,
  3489.           if you are editing a file name "program.c", WED will rename the
  3490.           orginal file to "program.bak" and then save the edited version as
  3491.           "program.c."  You can disable this automatic backup feature by
  3492.           changing the "make BAK files" setting to "no."
  3493.  
  3494.  
  3495.           10.10   File Name Keep
  3496.  
  3497.  
  3498.                   The File Name flag is designed to save you time entering
  3499.           file names while you edit.  When File Name is set to "keep", WED
  3500.           remembers the last file name you entered.  For example, when you
  3501.           begin your edit session, this the the name of the main edit
  3502.           file.  Every time you are prompted to enter a file name, WED
  3503.           displays the last file name you entered.  You can then edit that
  3504.           name or enter a new one.  The editing keys available while
  3505.           entering file names are the left and right cursor keys, the home
  3506.           and end keys, the plus and minus keys, and the backspace key.
  3507.  
  3508.  
  3509.  
  3510.           Copyright (C) 1987-1989 Washington Computer Co.               49
  3511.  
  3512.  
  3513.           WED 4.10                  User's Guide                     Setup
  3514.  
  3515.  
  3516.  
  3517.           In addition, the <Ins> key toggles between overright and insert
  3518.           modes, and Ctrl-<End> erase from the cursor to the end of the
  3519.           entry.
  3520.  
  3521.                   If the File Name flag is set to "clear", then you will
  3522.           have to enter a complete file name whenever you execute a file
  3523.           command.
  3524.  
  3525.  
  3526.           10.11   Swap Path
  3527.  
  3528.  
  3529.                   When you edit very large files, WED may have to swap
  3530.           some of the text out to disk because because there is not
  3531.           enough memory to hold the entire file in RAM.  WED may also
  3532.           have to swap text to disk when you eXecute user programs or
  3533.           compilers.   When the editor swaps out text, it writes it to a
  3534.           file called "WEDSWAP.TXT."   Normally, it creates this file in
  3535.           the default directory, but you can overwride this with the Swap
  3536.           Path setup field.  You can use this feature to improve
  3537.           performance by specifying a ramdisk.
  3538.  
  3539.                   To change the swap path, select the Swap Path setup
  3540.           field.  WED will open a window and prompt for the new swap
  3541.           path.  Enter the complete path specification (including the
  3542.           disk drive if different from the default).
  3543.  
  3544.  
  3545.           10.12   Monitor Type
  3546.  
  3547.  
  3548.                   Some computer systems combine a monochrome monitor with
  3549.           a color adapter card.  These systems display colors as shades a
  3550.           gray, a display mode which can be hard on the eyes when you are
  3551.           performing text functions such as editing.
  3552.  
  3553.                   You could use the color selection function to select
  3554.           black and white color combinations, but WED provides an easier
  3555.           way.  When you set the Monitor Type setup field to "mono", WED
  3556.           automatically selects black and white color combinations.
  3557.  
  3558.  
  3559.           10.13   Colors
  3560.  
  3561.  
  3562.                   WED allows you to select the colors that it will use
  3563.           during edit sessions.  You can select color sets for the various
  3564.           window types such as edit, menus, help, etc.  For each window
  3565.           type, you can select the colors for five attribute types,
  3566.           background, normal, highlighted, border, and field text.
  3567.  
  3568.                   To change colors, select the "Colors" setup field and WEd
  3569.  
  3570.  
  3571.  
  3572.           Copyright (C) 1987-1989 Washington Computer Co.               50
  3573.  
  3574.  
  3575.           WED 4.10                  User's Guide                     Setup
  3576.  
  3577.  
  3578.  
  3579.           will display the color selection menu.  Use the <up> and <down>
  3580.           cursor keys to select the window type, the <left> and <right>
  3581.           cursor keys to select the attribute type, and the <space> bar to
  3582.           step through the available colors.
  3583.  
  3584.  
  3585.           10.14   EGA 43 Line Mode
  3586.  
  3587.  
  3588.                   Most EGA video adapters support a compressed text mode with
  3589.           forty-three lines on the screen.  If you have one of these EGA
  3590.           adapters, you can use the 43-line mode when editing with WED.
  3591.  
  3592.                   When the WED 43-line mode field is set to "yes," WED
  3593.           automatically switchs to the adapter to the condensed mode. 
  3594.           When you exit WED, the editor always resets the adapter to the
  3595.           standard 25-line mode.
  3596.  
  3597.  
  3598.           10.15   Snow Removal
  3599.  
  3600.  
  3601.                   If your computer has a color display system, you may
  3602.           experience problems with video snow while using WED.  You can
  3603.           eliminate the snow by setting the Snow Removal switch to "yes".
  3604.  
  3605.                   In order to eliminate the video snow, WED must wait for
  3606.           your monitor to perform a vertical retrace.  This means that
  3607.           screen output will be slower when the Snow Removal switch is set
  3608.           to "yes".  For this reason, some users may opt to tolerate the
  3609.           screen snow and  leave the Snow Removal switch set to "no" so that
  3610.           WED's screen output will be as fast as possible.
  3611.  
  3612.  
  3613.           10.16   Auto Indent
  3614.  
  3615.  
  3616.                   The auto indent mode saves you key strokes when editing
  3617.           programs which use indentation.  This feature only operates when
  3618.           the editor is in the Insert mode.
  3619.  
  3620.                   If auto indent is turned on and you are entering text in
  3621.           Insert mode, then after each carriage return, WED will indent
  3622.           the next line to the same level as the current line.  It does
  3623.           this by automatically entering spaces at the beginning of the
  3624.           line.  If you want to change the indentation level of the new
  3625.           line, you can use either the backspace or space keys to reduce
  3626.           or increase the indentation level of the line.
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.           Copyright (C) 1987-1989 Washington Computer Co.               51
  3635.  
  3636.  
  3637.           WED 4.10                  User's Guide                     Setup
  3638.  
  3639.  
  3640.  
  3641.           10.17   Word Wrap
  3642.  
  3643.  
  3644.                   WED supports a word wrap mode for documentation and
  3645.           light word processing tasks.  When word wrap is on and you
  3646.           enter text past the right margin, WED will move the current
  3647.           word down to the next line and allow you to continue typing. 
  3648.           The right margin column setting is another setup field and is
  3649.           described below.
  3650.  
  3651.                   If you latter edit the text, you can use the Format
  3652.           command to reflow the text within the margins.  The word wrap
  3653.           mode is described in detail in chapter six of this manual.
  3654.  
  3655.  
  3656.           10.18   Right Margin
  3657.  
  3658.  
  3659.                   The right margin setting determines the column at which
  3660.           WED will attempt to word wrap the current input line.  This
  3661.           setup field has no effect when Word Wrap is set turned off.
  3662.  
  3663.  
  3664.           10.19   Tab Conversion
  3665.  
  3666.  
  3667.                   The tab character is a special character in ASCII files.
  3668.           When it is displayed on the screen, as with an editor, it is
  3669.           displayed as a series of blanks.  The number of blanks is
  3670.           determined by the screen column on which the tab character is
  3671.           positioned and on the current settings of the tab stops. Enough
  3672.           blanks will be included to cause the next character to be
  3673.           displayed at the next tab stop.  In WED, the tab stops are set
  3674.           every eight columns starting with column one.  These settings
  3675.           cannot be changed.
  3676.  
  3677.                   Tabs are most useful for lining up columns of numbers,
  3678.           words or other text.  They are also handy for quickly moving the
  3679.           cursor out to a higher column.  For example, moving to column
  3680.           seventeen takes sixteen keystrokes with the space key,
  3681.           but only two keystrokes with the tab key.
  3682.  
  3683.                   In high level languages, it is often convenient to be
  3684.           able to move out to desired columns using the tab key, but it is
  3685.           undesirable to have actual tab characters inserted into the
  3686.           source file because they make it difficult to change indentation.
  3687.  
  3688.                   WED provides an answer to this conflict.  The Tabs flag
  3689.           controls the action of the tab key in the Insert mode.  When
  3690.           this flag is set to "tabs", the tab key works normally and causes
  3691.           a tab character to be inserted into the text.  When the flag is
  3692.           set to "spaces", however, the tab key causes space characters to
  3693.  
  3694.  
  3695.  
  3696.           Copyright (C) 1987-1989 Washington Computer Co.               52
  3697.  
  3698.  
  3699.           WED 4.10                  User's Guide                     Setup
  3700.  
  3701.  
  3702.  
  3703.           be inserted instead of a tab character.  Enough spaces will be
  3704.           inserted to move the cursor to the next tab stop.
  3705.  
  3706.  
  3707.           10.20   Tab Stops
  3708.  
  3709.  
  3710.                   When you receive WED, the tab stops will be set to their
  3711.           default value of every eight columns.  You can alter these
  3712.           settings with the tab stops option on the Setup menu.  You can
  3713.           set up to forty tab stops in in any columns up to column 78.
  3714.  
  3715.                   To change the tab stops, select that option from the
  3716.           Setup menu, and WED will open a window containing a format line
  3717.           with a ">" at each tab stop.  To add or remove a tab stop, move
  3718.           the cursor to the desired column and press <Tab> to add a tab
  3719.           stop, or <Space> to remove a tab stop.  When you are done, press
  3720.           <Enter> to store the new tab settings.
  3721.  
  3722.  
  3723.           10.21   Print Header
  3724.  
  3725.  
  3726.                   The WED file printing utility provides an option for
  3727.           printing header lines on each page of the listing.  These
  3728.           header lines include the file name, a user entered title, the
  3729.           page number, and the current time and date.  This option is
  3730.           very useful when generating source code listings.
  3731.  
  3732.                   If you don't want the header lines, then set the "print
  3733.           header" status to "no."
  3734.  
  3735.  
  3736.           10.22   Print Line Numbers
  3737.  
  3738.  
  3739.                   The WED file printing utility provides an option for
  3740.           printing line numbers on each line of the listing.  This option
  3741.           is very useful when generating source code listings.
  3742.  
  3743.                   If you don't want the line numbers, then set the "print
  3744.           line nos" status to "no."
  3745.  
  3746.  
  3747.           10.23   Printer Page Height
  3748.  
  3749.  
  3750.                   When you use the file printing utility, you must tell
  3751.           WED the total number of lines per page.  For most applications
  3752.           this value will be 66.
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.           Copyright (C) 1987-1989 Washington Computer Co.               53
  3759.  
  3760.  
  3761.           WED 4.10                  User's Guide                     Setup
  3762.  
  3763.  
  3764.  
  3765.           10.24   Printer Page Width
  3766.  
  3767.  
  3768.                   When you use the file printing utility, you must tell
  3769.           WED the total number of columns per line.  For most applications
  3770.           this value will be 80 or 132.
  3771.  
  3772.  
  3773.           10.25   Printer Top Margin
  3774.  
  3775.  
  3776.                   The top margin value specifies the number of blank lines
  3777.           to skip over at the top of each page when printing files.
  3778.  
  3779.  
  3780.           10.26   Printer Bottom Margin
  3781.  
  3782.  
  3783.                   The bottom margin value specifies the number of blank
  3784.           lines to skip over at the bottom of each page when printing
  3785.           files.
  3786.  
  3787.  
  3788.           10.27   Printer Left Margin
  3789.  
  3790.  
  3791.                   The left margin value specifies the number of columns
  3792.           to skip over at the beginning of each line when printing files.
  3793.  
  3794.  
  3795.           10.28   Printer Rigth Margin
  3796.  
  3797.  
  3798.                   The right margin value specifies the number of blank to
  3799.           skip over at the end of each line when printing files.
  3800.  
  3801.  
  3802.           10.29   Printer Setup String
  3803.  
  3804.  
  3805.                   The printer setup string is a string of characters that
  3806.           will be sent to the printer before printing a file.  This
  3807.           string can contain any eight-bit values needed to place the
  3808.           printer in the proper mode(s) for printing the file.  One use
  3809.           of this string might be to place the printer in a condensed
  3810.           mode for printing source code listings.
  3811.  
  3812.                   Setup strings are made up of a series of characters and
  3813.           ASCII codes.  ASCII codes are represented with standard C
  3814.           notation, "\ddd" where the back slash signals an ASCII code,
  3815.           and is followed by the actual code in decimal base.  For
  3816.           example, the <Esc> character (ASCII 27) would be represented as
  3817.  
  3818.  
  3819.  
  3820.           Copyright (C) 1987-1989 Washington Computer Co.               54
  3821.  
  3822.  
  3823.           WED 4.10                  User's Guide                     Setup
  3824.  
  3825.  
  3826.           "\27."  As in C, you can specify a hex or binary base by
  3827.           prefixing the value with an "x" or a "b."  For example, <Esc>
  3828.           would be entered as "\x1A" in hex.
  3829.  
  3830.                   The following is an example of a complete printer setup
  3831.           string that places an Epson compatable printer into condensed
  3832.           mode printing:  "\x0F"
  3833.  
  3834.  
  3835.           10.30   Printer Reset String
  3836.  
  3837.  
  3838.                   The printer reset string is similar to the setup
  3839.           string, only it is sent to the printer after the file has been
  3840.           printed.  The purpose of this string is to reset the printer to
  3841.           its normal mode.  For example, the string may contain the codes
  3842.           to return the printer to normal density printing after printing
  3843.           the file with condensed print:  "\x12"
  3844.  
  3845.           10.31   Save Setup Values
  3846.  
  3847.  
  3848.                   When you make configuration changes with the setup
  3849.           command, those changes are only retained during the current edit
  3850.           session.  If you want the new selections to remain in effect for
  3851.           future edit sessions, you must save them on disk.  To do this,
  3852.           select the last setup field, "save setup values," and WED will
  3853.           write the current configuration to a file called WED.CFG.  This
  3854.           file will be placed in the same subdirecty as WED.EXE.
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.           Copyright (C) 1987-1989 Washington Computer Co.               55
  3882.  
  3883.  
  3884.           WED 4.10                                             Appendix A
  3885.  
  3886.  
  3887.  
  3888.                                   Command Summary
  3889.  
  3890.  
  3891.  
  3892.           <right arrow>   Move right one character.                   12
  3893.           <left arrow>    Move left one character.                    12
  3894.           <down arrow>    Move down line.                             12
  3895.           <up arrow>      Move up line.                               12
  3896.           <Ctrl rt arrow> Move right one word.                        13
  3897.           <Ctrl lf arrow> Move left one word.                         13
  3898.           <Enter>         Move to beginning of next line.             12
  3899.           <Home>          Move to beginning of current line.          12
  3900.           <End>           Move to end of current line.                12
  3901.           <tab>           Move to next space character.               13
  3902.           <Ctrl arrow>    Scroll screen right, left, up, or down.     13
  3903.           <PgDn>          Move down screen.                           13
  3904.           <PgUp>          Move up screen.                             13
  3905.           <+>             Insert character.                           17
  3906.           <->             Delete Cursor.                              19
  3907.           <Backspace>     Delete Left.                                19
  3908.           <Ctrl-M>        Insert a carriage return.                   17
  3909.           <Ctrl-L>        Locate same phrase                          20
  3910.           <Ctrl-R>        Replace same phrase                         20
  3911.           <F1>..<F10>     Run macro.                                  47
  3912.           <Ins>           Insert text.                                17
  3913.           Append          Read another file into the current file.    29
  3914.           Bridge          Copy a block of text from other file.       33
  3915.           Copy            Copy a block of text.                       27
  3916.           Dos             Gateway to DOS.                             33
  3917.           Erase, <Del>    Erase text.                                 19
  3918.           Format                                                   35,37
  3919.             Indent        Indent block of text.
  3920.             Undent        Unindent block of text.
  3921.             Paragraph     Re-flow block of text (word-wrap).
  3922.           Goto                                                        14
  3923.             Top           Move to the top of the file.
  3924.             Bottom        Move to the bottom of the file.
  3925.             Line          Move to specific line in the file.
  3926.             1..8          Move to a pointer in the file.
  3927.           Help            On-line help for commands.                   8
  3928.           Insert          Toggle insert mode.                         17
  3929.           Locate          Locate a word or phrase.                    20
  3930.           Move            Move a block of text.                       26
  3931.           Next            Show next prompt line.                       6
  3932.           Other           Edit other file.                            31
  3933.           Pointer         Set edit an pointer in file.                25
  3934.           Quit                                                         9
  3935.             Save          Save current file and exit to main menu.
  3936.             Keep          Save current file and exit to DOS.
  3937.             Write         Save current file and continue.
  3938.             Abandon       Abandon current file and exit.
  3939.           Replace         Replace word or phrase with another.        20
  3940.  
  3941.  
  3942.  
  3943.           Copyright (C) 1987-1989 Washington Computer Co.               56
  3944.  
  3945.  
  3946.           WED 4.10                                             Appendix A
  3947.  
  3948.  
  3949.  
  3950.           Setup           Modify WED setup parameters                 45
  3951.           Text            Switch between text and graphics modes.     41
  3952.           Undel           Undelete last deleted text.                 29
  3953.           Write           Write a block of text to another file.      30
  3954.           eXecute         Run compiler or user program.               38
  3955.           (Y)ascii        Pop-up ASCII table.                         40
  3956.           Zap             Delete a block of text.                     28
  3957.  
  3958.  
  3959.  
  3960.  
  3961.  
  3962.  
  3963.  
  3964.  
  3965.  
  3966.  
  3967.  
  3968.  
  3969.  
  3970.  
  3971.  
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978.  
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.           Copyright (C) 1987-1989 Washington Computer Co.               57
  4006.  
  4007.  
  4008.           WED 4.10                                             Appendix B
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.                                  Initial Macro Settings
  4015.  
  4016.  
  4017.  
  4018.  
  4019.           Number          Setting                 What it Does
  4020.           ------          -------                 ------------
  4021.  
  4022.  
  4023.            1              <Alt-G>T                Goes to the top of the file.
  4024.  
  4025.            2              <Alt-G>T                Goes to the bottom of the file.
  4026.  
  4027.            3              <Del><End><Del>         Erases to the end of the 
  4028.                                                   current line.
  4029.  
  4030.            4              <Home><Del><End><Del>   Erases the current line.
  4031.  
  4032.            5              <Alt-P>1                Sets pointer 1
  4033.  
  4034.            6              <Alt-P>2                Sets pointer 2
  4035.  
  4036.            7              <Alt-C>12               Copies block marked by P1 & P2.
  4037.  
  4038.            8              <Alt-M>12               Moves block marked by P1 & P2.
  4039.  
  4040.            9
  4041.  
  4042.           10              <Alt-Q>K                Saves the current edit file
  4043.                                                   and exits the editor.
  4044.  
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.           Copyright (C) 1987-1989 Washington Computer Co.               58
  4068.  
  4069.  
  4070.           WED 4.10                                              Appendix C
  4071.  
  4072.  
  4073.  
  4074.  
  4075.  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.                         Appendix C is contained in a seperated file:
  4086.  
  4087.                         APPENDC.DOC
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097.  
  4098.  
  4099.  
  4100.  
  4101.  
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.  
  4111.  
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.  
  4121.  
  4122.  
  4123.  
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.           Copyright (C) 1987-1989 Washington Computer Co.               59
  4130.  
  4131.  
  4132.           WED 4.10                                              Appendix D
  4133.  
  4134.  
  4135.  
  4136.           Using WED with Quarterdeck's DESQview:
  4137.  
  4138.  
  4139.                   DESQview by Quarterdeck Office Systems, is a multitasking
  4140.           applications manager for IBM PC's and compatibles that allows you
  4141.           to run multiple applications at the same time.  If the
  4142.           applications running under DESQview are well behaved or are
  4143.           DESQview aware, they can be run within small windows.  This is a
  4144.           powerfull feature that allows several applications to share the
  4145.           video screen.
  4146.  
  4147.                   The WED Text Editor is a DESQview aware program and thus
  4148.           can be run in a small window.  Before you use WED with DESQview
  4149.           you need to tell DESQview about WED.  First, you should read the
  4150.           chapter on "Changing a Program's Information" in the DESQview
  4151.           manual.  The following options should be set as indicated (only
  4152.           the options important to WED are shown):
  4153.  
  4154.  
  4155.           +--------------------------------------------------------------+
  4156.           |                       Change a Program                       |
  4157.           |                                                              |
  4158.           | Program Name.....:                                           |
  4159.           |                                                              |
  4160.           | Keys to Use on Open Menu:            Memory Size (in K): 128 |
  4161.            -------------------------------------------------------------- 
  4162.           | Program...:                                                  |
  4163.           |                                                              |
  4164.           | Parameters:                                                  |
  4165.           |                                                              |
  4166.           | Directory.:                                                  |
  4167.            -------------------------------------------------------------- 
  4168.           | Options:                                                     |
  4169.           |             Writes directly to screen......: [N]             |
  4170.           |             Displays graphics information..: [N]             |
  4171.           |             Can be swapped out of memory...: [Y]             |
  4172.           |             Requires floppy diskette.......: [N]             |
  4173.           |                                                              |
  4174.           | Press F1 for advanced optons      Press <- when you are DONE |
  4175.           +--------------------------------------------------------------+
  4176.  
  4177.  
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185.  
  4186.  
  4187.  
  4188.  
  4189.  
  4190.  
  4191.           Copyright (C) 1987-1989 Washington Computer Co.               60
  4192.  
  4193.  
  4194.           WED 4.10                                              Appendix E
  4195.  
  4196.  
  4197.  
  4198.           NEW FEATURES IN VERSION 4.10
  4199.  
  4200.  
  4201.                   The following is a list of the new features in WED and
  4202.           the version in which they were introduced.
  4203.  
  4204.  
  4205.                   Release 4.10
  4206.  
  4207.                   o  The Undelete command has been added.  This command
  4208.                      enables you to retrieve the last deleted block of
  4209.                      text.
  4210.  
  4211.                   o  Tab stops are now user definable.  Also, the auto
  4212.                      indent and format indent commands have been modified
  4213.                      to use tab characters when possible.  This feature is
  4214.                      controled by the Setup flag, "tab conversion."
  4215.  
  4216.                   o  The Setup command now allows you to specify which keys
  4217.                      will be assigned to the "push" and "drop down" insert
  4218.                      modes.
  4219.  
  4220.                   o  The help facility has been improved with faster
  4221.                      response and a smaller help file.
  4222.  
  4223.                   o  The disk swapping logic has been improved with faster 
  4224.                      swapping operations.
  4225.  
  4226.                   Release 4.00
  4227.  
  4228.                   o  Pop-up menus were added to make WED commands easier
  4229.                      to learn and remember.
  4230.  
  4231.                   o  Disk buffering logic was added to enable WED to edit
  4232.                      very large files.
  4233.  
  4234.                   o  The Other file command has been enhanced to allow
  4235.                      the editing of up to ten files at one time.
  4236.  
  4237.                   o  The macro facility has been enhanced to allow the
  4238.                      creation of up to forty macros.
  4239.  
  4240.                   o  A word-wrap mode was added to support documenation
  4241.                      writting and light word processing.
  4242.  
  4243.                   o  The help system has been improved and now supports
  4244.                      context-sensitive help.
  4245.  
  4246.                   o  The Setup command has been expanded and now let's
  4247.                      you alter and/or save all setup parameters from
  4248.                      within WED.
  4249.  
  4250.  
  4251.  
  4252.  
  4253.           Copyright (C) 1987-1989 Washington Computer Co.               61
  4254.  
  4255.  
  4256.           WED 4.10                                              Appendix E
  4257.  
  4258.  
  4259.  
  4260.                   o  WED can now swap edit text to disk to make room for
  4261.                      large compilers.
  4262.  
  4263.                   o  A new file printing function has been added with
  4264.                      various formatting options that support source code
  4265.                      listings as well as documentation.
  4266.  
  4267.                   Release 3.13
  4268.  
  4269.                   o  WED now provides support for the special EGA
  4270.                      forty-three line mode.
  4271.  
  4272.                   o  WED is now DESQview aware.  This means that it
  4273.                      can be run in a DESQview small window.  DESQview
  4274.                      is a windowing application manager from
  4275.                      Quarterdeck Office Systems.
  4276.  
  4277.                   Release 3.10
  4278.  
  4279.                   o  A new DOS gateway command has been added which
  4280.                      allows you to switch to the DOS prompt without
  4281.                      exiting WED.
  4282.  
  4283.                   o  You can now compile programs from inside WED.
  4284.                      Use the WEDINST program to install up to six user
  4285.                      compilers, assemblers, or other programs.  Then you
  4286.                      can save and compile a program with a single
  4287.                      command.  When the compilation is complete, a single
  4288.                      keystroke restores the edit session.
  4289.  
  4290.                   o  The Quit command has two new options, Save a file
  4291.                      and continue editing, and quit the current file 
  4292.                      and begin editing a New file.
  4293.  
  4294.                   o  All submenus now allow you to hold the Alt key while
  4295.                      selecting options.
  4296.  
  4297.                   o  Some users with color displays have experienced
  4298.                      problems with video snow while using WED.  A WEDINST
  4299.                      switch has been added which allows you to eliminate
  4300.                      this snow.
  4301.  
  4302.                   Release 3.00
  4303.  
  4304.                   o  WED now performs horizontal scrolling instead of line
  4305.                      wrap!  If a line is longer than eighty columns and
  4306.                      you attempt to move the cursor past the edge of the
  4307.                      screen, WED will scroll the text window sideways to
  4308.                      keep the cursor on the screen.  Text lines may be up
  4309.                      to 32,000 characters long.
  4310.  
  4311.                   o  You can now enter text while at the main command
  4312.  
  4313.  
  4314.  
  4315.           Copyright (C) 1987-1989 Washington Computer Co.               62
  4316.  
  4317.  
  4318.           WED 4.10                                              Appendix E
  4319.  
  4320.  
  4321.  
  4322.                      move of WED.  This feature replaces the Xchange
  4323.                      command of earlier versions.  To make this possible,
  4324.                      all of the character commands have been changed to
  4325.                      Alt commands.  For example, to execute the Pointer
  4326.                      command, you would type Alt-P instead of P.  I
  4327.                      understand that this will create a difficult
  4328.                      transition period for those of you who are used to
  4329.                      the old command format, but I think it will be well
  4330.                      worth it.
  4331.  
  4332.                   o  The Other files command now supports split screens
  4333.                      for viewing two files at the same time.  This
  4334.                      feature is optional and can be changed with the
  4335.                      Setup command or the WEDINST program.
  4336.  
  4337.                   o  A new command, Bridge, has been added to allow you
  4338.                      to copy blocks of text from one file to another.
  4339.                      This command is designed to work with the Other
  4340.                      files command.
  4341.  
  4342.                   o  An on-line help function has been added which can
  4343.                      display help screens for each of the main commands.
  4344.  
  4345.                   o  New scrolling commands have been added which enable
  4346.                      you to scroll the screen window right, left, up,
  4347.                      or down.
  4348.  
  4349.                   o  With the new Text command, you can enter and edit
  4350.                      the IBM special graphics characters (ASCII 128 - 255).
  4351.  
  4352.                   o  WED now allows you to scroll past the bottom of the
  4353.                      screen while in the Erase mode.
  4354.  
  4355.                   o  You can now select between the standard underline
  4356.                      cursor or an easier to see block cursor.  Use the
  4357.                      WEDINST program to make this selection.
  4358.  
  4359.                   o  WED now accepts ASCII 0 (^@) characters while in
  4360.                      the Insert mode.  This is useful for writing blank
  4361.                      lines from batch files (ECHO ^@).
  4362.  
  4363.                   o  The Locate and Replace commands now accept control
  4364.                      characters in the search and replace keys.  This
  4365.                      includes Ctrl-M, the carriage return character.
  4366.  
  4367.                   o  Screen handling throughout the editor is
  4368.                      significantly faster in version 3.00.
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376.           Copyright (C) 1987-1989 Washington Computer Co.               63
  4377.